python-youtube-code
python-youtube-code copied to clipboard
Status: 502 — Try rerunning the code
Webscraping-baby-yoda-with-requests-and-bs4, ran the code but getting above error, how can I download google search images?
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!
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