change User-Agent

master
Hofei90 4 years ago
parent f24f3fcf3c
commit 3e8dc791d6

@ -28,7 +28,8 @@ STANDARD_STATS_URL = "https://api.tracker.gg/api/v2/modern-warfare/standard/prof
def get_json_data(url): def get_json_data(url):
r = requests.get(url) r = requests.get(url, headers={"User-Agent": "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:82.0) "
"Gecko/20100101 Firefox/82.0"})
return json.loads(r.text) return json.loads(r.text)

Loading…
Cancel
Save