diff --git a/repology-openmamba.py b/repology-openmamba.py index 9d329f1..62a1493 100755 --- a/repology-openmamba.py +++ b/repology-openmamba.py @@ -30,7 +30,12 @@ while True: requrl += from_package +"/" requrl += "?inrepo=openmamba&outdated=1" sys.stderr.write("Requesting: " + requrl + "\n") - url = urllib.request.urlopen(requrl) + req = urllib.request.Request( + requrl, + data=None, + headers={'User-Agent': 'autodist/1.5.3 (Linux; openmamba; reports@openmamba.org)'} + ) + url = urllib.request.urlopen(req) #print(requrl) data = json.loads(url.read().decode())