I am hosting a Telegram bot on Pythonanywhere, using a paid account, and it works like a charm. The problem comes when I try to perform a daily scrape from stats.nba.com, in order to gather player statistics for the bot. I get this error: HTTPSConnectionPool(host='stats.nba.com', port=443): Read timed out. (read timeout=5)
I also tried rising the timeout to one minute but it fails. The request line is this one: r = requests.get(url=URL, timeout=5, headers={'Referer': 'https://www.nba.com/', 'User-Agent': USERAGENT})
The same instruction runs fine on my PC from Ubuntu and/or Windows. What am I missing to perform the GET on Pythonanywhere?