Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default User-Agent is being rejected by some sites #61

Open
pcolazurdo opened this issue Feb 1, 2021 · 0 comments
Open

Default User-Agent is being rejected by some sites #61

pcolazurdo opened this issue Feb 1, 2021 · 0 comments

Comments

@pcolazurdo
Copy link

Hi all,
I've tried using this tool recently and found that it wasn't downloading some info from sites. After some debugging I've found that, for example twitter, was rejecting the default user agent.

I've replaced it with: headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'} and it worked fine.

It would be nice if User-Agent would be an configurable option so the code doesn't need to be updated every time some site reject this.

Hope it helps,
Pablo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant