You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using get_tweets and have already retrieved many pages of tweets, and I'm using cursors. But at some point, after retrieving hundreds of pages, it starts returning 0 tweets, but only when replies=True (see cursor_pages900 below). Any reason why that might be happening? Thanks!
fromtweetyimportTwitterapp=Twitter("session")
app.sign_in(username, password)
user="elonmusk"# cursor from getting just 1 page of tweets: get_tweets(pages=1)cursor_page001="DAABCgABGHOu41v__-QKAAIYc06G79Yg4AgAAwAAAAIAAA"# cursor from getting more than 900 pages of tweetscursor_page900="DAABCgABGG3fhij_8VYKAAIYGUieVhahQQgAAwAAAAIAAA"tweets_replies=app.get_tweets(user, replies=False, cursor=cursor_page001)
# UserTweets(user_id=44196397, count=18)tweets_replies=app.get_tweets(user, replies=True, cursor=cursor_page001)
# UserTweets(user_id=44196397, count=20)tweets_replies=app.get_tweets(user, replies=False, cursor=cursor_page900)
# UserTweets(user_id=44196397, count=19)tweets_replies=app.get_tweets(user, replies=True, cursor=cursor_page900)
# UserTweets(user_id=44196397, count=0) why 0 tweets retrieved???
The text was updated successfully, but these errors were encountered:
Thanks! Regarding the second point, are you referring to this: "Tweets of a User can be fetched of last 7-10 days only, for going beyond that use Search method." Also, does the search method return all tweets or just a (random) subset of matching tweets?
Thanks! Regarding the second point, are you referring to this: "Tweets of a User can be fetched of last 7-10 days only, for going beyond that use Search method." Also, does the search method return all tweets or just a (random) subset of matching tweets?
Using advance search will give you tweets only for that query
I'm using
get_tweets
and have already retrieved many pages of tweets, and I'm using cursors. But at some point, after retrieving hundreds of pages, it starts returning 0 tweets, but only whenreplies=True
(seecursor_pages900
below). Any reason why that might be happening? Thanks!The text was updated successfully, but these errors were encountered: