Closed gastypm closed 6 years ago
Hey @gastypm, thanks for flagging this. Your source account was acting in an unusual manner, so I added a check to make sure the requests to twitter were actually getting any tweets. Give it a try with the new version, and please let me know if you have any other bugs.
Thanks for the answer @tommeagher! Unfortunately I keep getting the same error message. I'll try with another account.
I've also tried with another account (@manucaso) but I get the same error.
@gastypm, did you pull down the changes I made? I'm not getting any errors when I try to pull from that either of those Twitter accounts.
Yes I did, but now I started again from the ground and it's working. Thank you!
I'm getting this message whenever I try to run the code. Sometimes I get "2 No, sorry, not this time." and sometimes "IndexError: list index out of range". I've read that this is cause by a less-than-3600-tweets account but the one I'm trying to source (@Tscchnnell) has more than 7k tweets.
Here's the traceback: Traceback (most recent call last): File "ebooks.py", line 135, in
twitter_tweets_iter, max_id = grab_tweets(api, max_id)
File "ebooks.py", line 96, in grab_tweets
max_id = user_tweets[-1].id - 1
IndexError: list index out of range