Jefferson-Henrique / GetOldTweets-python

A project written in Python to get old tweets, it bypass some limitations of Twitter Official API.
MIT License
1.35k stars 807 forks source link

Hashtags #260

Open NICK7Z opened 4 years ago

NICK7Z commented 4 years ago

I was trying to get certain hashtags, the others in the example all worked, and I use this format in terminal python Exporter.py --hashtags "#everyday" --maxtweets 10

It returns me this error: Traceback (most recent call last): File "Exporter.py", line 79, in main(sys.argv[1:]) File "Exporter.py", line 75, in main outputFile.close() UnboundLocalError: local variable 'outputFile' referenced before assignment

How can I solve this?

Thanks

JhonJDiazG commented 4 years ago

Make sure that there is no other CSV file called "output_got.csv" in the folder where is Exporter.py. Pardon for my english.

SurajMeena commented 4 years ago

I think you should use --querysearch instead of --hashtags, it will work for sure