Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Spaces API #567

Open
igorbrigadir opened this issue Oct 29, 2021 · 2 comments
Open

Support for Spaces API #567

igorbrigadir opened this issue Oct 29, 2021 · 2 comments
Labels

Comments

@igorbrigadir
Copy link
Contributor

Twitter Spaces are temporary audio chat rooms. The APIs for spaces allow you to retrieve and list them, and they have recently added the ability to record them, which is of interest to archiving - so twarc2 should support the spaces APIs that have useful data. For example:

https://developer.twitter.com/en/docs/twitter-api/spaces/search/api-reference/get-spaces-search

twarc2 spaces search "foo" output.json

https://developer.twitter.com/en/docs/twitter-api/spaces/lookup/api-reference/get-spaces-id

twarc2 spaces 12345 

or https://developer.twitter.com/en/docs/twitter-api/spaces/lookup/api-reference/get-spaces

twarc2 spaces "12345,67890"

or

twarc2 spaces input.txt output.txt

or https://developer.twitter.com/en/docs/twitter-api/spaces/lookup/api-reference/get-spaces-by-creator-ids

twarc2 spaces --user-ids "123,456,789" output.json

(these are just suggestions)

@edsu
Copy link
Member

edsu commented Oct 29, 2021

This sounds like a useful thing to add @igorbrigadir. The interface makes me think that perhaps twarc2 stream-rules list should be twarc2 stream-rules.

@igorbrigadir igorbrigadir added the good first issue Good for newcomers label Mar 20, 2022
@igorbrigadir
Copy link
Contributor Author

I marked this "good first issue" but this is a big chunk of work, there are multiple endpoints to implement and the command line isn't set in stone either - so there's likely a bit of work to do just figuring stuff out first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants