minimaxir / download-tweets-ai-text-gen

Python script to download public Tweets from a given Twitter account into a format suitable for AI text generation.
MIT License
221 stars 41 forks source link

Error downloading @f1 #36

Open Mccpie01 opened 2 years ago

Mccpie01 commented 2 years ago

Hello, I was trying to download F1 tweet and i get the following python download_tweet.py f1 1000 Retrieving tweets for @f1... Oldest Tweet: 0%| | 0/1000 [00:00<?, ?it/s]Expecting value: line 1 column 1 (char 0) [x] run.Feed [!] if get this error but you know for sure that more tweets exist, please open an issue and we will investigate it! Expecting value: line 1 column 1 (char 0) [x] run.Feed [!] if get this error but you know for sure that more tweets exist, please open an issue and we will investigate it! Expecting value: line 1 column 1 (char 0) [x] run.Feed [!] if get this error but you know for sure that more tweets exist, please open an issue and we will investigate it! Expecting value: line 1 column 1 (char 0) [x] run.Feed [!] if get this error but you know for sure that more tweets exist, please open an issue and we will investigate it! Oldest Tweet: 4%|█ | 40/1000 [00:24<09:39, 1.66it/s]Traceback (most recent call last): File "/Users/user/download_tweet.py", line 161, in <module> fire.Fire(download_tweets) File "/usr/local/lib/python3.9/site-packages/fire/core.py", line 141, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File "/usr/local/lib/python3.9/site-packages/fire/core.py", line 466, in _Fire component, remaining_args = _CallAndUpdateTrace( File "/usr/local/lib/python3.9/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) File "/Users/user/download_tweet.py", line 152, in download_tweets tweet_data[-1].datetime / 1000.0 IndexError: list index out of range Oldest Tweet: 4%|█ | 40/1000 [00:24<09:40, 1.65it/s]

The output only has the word "Tweets"in it.

i tryed to hardcode the name and limit but i got the same error.

Thanks