Jefferson-Henrique / Jefferson-Henrique/GetOldTweets-python
Yesterday can run ,but today can not run
- Dominant language
- Python
- Stars
- 1.3k
- Forks
- 790
- PR merge metrics
- No merged PRs in 30d
Description
i don't change code, run ,is this error:
Traceback (most recent call last):
File "E:\...\src\GetOldTweets-python-master\Main.py", line 32, in
main()
File "E:\...\src\GetOldTweets-python-master\Main.py", line 15, in main
tweet = got.manager.TweetManager.getTweets(tweetCriteria)[0]
IndexError: list index out of range
——————————————————————————————
I think the reason is have no response, I change the url:
def getJsonReponse(tweetCriteria, refreshCursor, cookieJar):
url ="https://twitter.com/search?f=tweets&q=%s&src=typd%s"
Report errors:
File "E:\Epyworkspace\pachong\src\twitter\GetOldTweets-python-master\Main.py", line 52, in
main()
File "E:\Epyworkspace\pachong\src\twitter\GetOldTweets-python-master\Main.py", line 39, in main
tweet = got.manager.TweetManager.getTweets(tweetCriteria)[0]
File "E:\Epyworkspace\pachong\src\twitter\GetOldTweets-python-master\got\manager\TweetManager.py", line 26, in getTweets
json = TweetManager.getJsonReponse(tweetCriteria, refreshCursor, cookieJar)
File "E:\Epyworkspace\pachong\src\twitter\GetOldTweets-python-master\got\manager\TweetManager.py", line 155, in getJsonReponse
dataJson = json.loads(jsonResponse)
File "E:\Anaconda2\lib\json\__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "E:\Anaconda2\lib\json\decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "E:\Anaconda2\lib\json\decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
I hope to get help, thank you very much
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.