Jefferson-Henrique / Jefferson-Henrique/GetOldTweets-python

Error in tweet_manager.py opener.open(url)

Open
#191 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
1.3k
Forks
790
PR merge metrics
No merged PRs in 30d

Description

I am getting an error in
response = opener.open(url)
in the Tweet_manager.py file. Basically it looks like the url is returning as not found but when I plug the url generated into chrome I can download the .json generated directly. I think this is related to the user agent in some way but I am not clear on how (Twitter sees the chrome user agent and answers the request). Does anyone have an idea here?

Edit: I did need to rotate the user agent to one not already in my rotation. This did yield a short-term solution for me.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.