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

Status: 502 — Try rerunning the code #7

Open
angyee opened this issue Jul 12, 2020 · 2 comments
Open

Status: 502 — Try rerunning the code #7

angyee opened this issue Jul 12, 2020 · 2 comments

Comments

@angyee
Copy link

angyee commented Jul 12, 2020

Webscraping-baby-yoda-with-requests-and-bs4,
ran the code but getting above error, how can I download google search images?

@sharingan3
Copy link

When I played the game, every time I went to the end of the screen(aka. the wall) it just teleports me to the opposite end. I looked in the code for where it tells the snake to do that but I didn't find it. I want to change the code so the game will stop when I go to the end. Thanks!

@kalheyn
Copy link

kalheyn commented Nov 4, 2020

Try adding 'user-agent' as a header in the request:
requests.get(url, headers={'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36'})

https://stackoverflow.com/questions/59799041/why-reddit-return-502-error-when-accessing-a-page-using-beautifulsoup4

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

3 participants