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

enhancement - use twitter streaming API #10

Open
sneakers-the-rat opened this issue Oct 6, 2022 · 0 comments
Open

enhancement - use twitter streaming API #10

sneakers-the-rat opened this issue Oct 6, 2022 · 0 comments

Comments

@sneakers-the-rat
Copy link

Hello hello - recall you saying the twitter bot is slow to respond, and noticed you were using a polling strategy:

and wondering if you've tried the streaming API? there are limits to how long the filtering rules can be, but from what i'm reading you can just open up more streams (25 per 15 minutes https://developer.twitter.com/en/docs/twitter-api/tweets/filtered-stream/introduction ). I've found this to be pretty snappy, and would avoid having to parse all tweets in the home timeline if you added a rule like ("[[" AND "]]") OR "#") to each of the streams.

also happy to draft a PR for this if you'd like :)

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

No branches or pull requests

1 participant