I have an app that checks the average gas price every week. The app has been working for years, but it just stopped working.
The following lines will timeout:
import requests
requests.get('https://www.eia.gov/petroleum/gasdiesel/includes/gas_diesel_rss.xml')
I can go to the same URL from a browser and see the expected content, but I can’t use requests
to fetch it any longer. I tried the same lines on my pc, just to see if it was an Anvil problem, and it fails here as well.
Soo… why does that URL work on the browser, but stopped working with requests
?
I know it’s not an Anvil problem, but I am asking here, hoping to get help from someone that speaks URLs and requests
better than me.