cannot download!
myrainbowandsky opened this issue · 3 comments
data_collection.out:
File "/home/lrn/Documents/FakeNewsNet-master/code/util/util.py", line 39, in init
self.twython_connector = TwythonConnector("localhost:5000", tweet_keys_file)
File "/home/lrn/Documents/FakeNewsNet-master/code/util/TwythonConnector.py", line 13, in init
self.init_twython_objects(key_file)
File "/home/lrn/Documents/FakeNewsNet-master/code/util/TwythonConnector.py", line 29, in init_twython_objects
oauth_token=line[2], oauth_token_secret=line[3]))
IndexError: list index out of range
Did you input all 4 twitter API keys into the text file at FakeNewsNet/Code/resources/tweet_keys_file.txt
?
Because this looks to me, like you are missing two out of the four keys.
Also be sure, to not include any spaces with the keys.
Thank you! fix it
In order to avoid the spacing issues, changes are made to provide Twitter keys as JSON.