python-youtube-code icon indicating copy to clipboard operation
python-youtube-code copied to clipboard

Status: 502 — Try rerunning the code

Open angyee opened this issue 4 years ago • 2 comments

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

angyee avatar Jul 12 '20 14:07 angyee

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!

sharingan3 avatar Aug 30 '20 00:08 sharingan3

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

kalheyn avatar Nov 04 '20 08:11 kalheyn