-
solved |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Take the streaming filter and run it alone. With a hand coded list of handles. Perhaps you need @ to be added or removed from handle. Also BTW you can use Tweepy to lookup a user by name (or ID) and get their ID on the returned User object. You might even be able to do batch lookup like the batch tweet IDs lookup |
Beta Was this translation helpful? Give feedback.
-
Maybe there is just low activity? Try follow your own account and make a tweet. From tweepy docs:
See if that works for our own account and your own stream instance. See also this issue #981 - the description says there is a limitation. I don't know if that's true.
The Twitter docs describe follow here: https://developer.twitter.com/en/docs/tweets/filter-realtime/guides/basic-stream-parameters. If you don't come right, use |
Beta Was this translation helpful? Give feedback.
-
i've been doing this with my account since i started and the problem is not that because when i run the single tweepy file it works perfectly, but if i ask it to follow the accounts that i got from the other file it doesn't work anymore |
Beta Was this translation helpful? Give feedback.
-
Since discord.py bots run asynchronously, you'll need to use the Note, Requests is also blocking and is liable to cause issues with your Discord bot. You can also use Twitter's API with the GET users/show endpoint using |
Beta Was this translation helpful? Give feedback.
Since discord.py bots run asynchronously, you'll need to use the
is_async
parameter to run the stream in a separate thread.Otherwise, the stream will block the Discord bot from running.
Note, Requests is also blocking and is liable to cause issues with your Discord bot.
You can also use Twitter's API with the GET users/show endpoint using
API.get_user
or the GET users/lookup endpoint usingAPI.lookup_users
to retrieve User objects by ID with attributes includingname
,screen_name
, etc. Note though, that Tweepy also uses Requests internally. For asyncio support for Tweepy, see #732.