From 3e8dc791d695ed09e7cc04773b1d04eb453af432 Mon Sep 17 00:00:00 2001 From: Hofei90 <29521028+hofei90@users.noreply.github.com> Date: Sat, 14 Nov 2020 17:29:38 +0100 Subject: [PATCH] change User-Agent --- get_cod_stats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/get_cod_stats.py b/get_cod_stats.py index 02df4f2..8287172 100644 --- a/get_cod_stats.py +++ b/get_cod_stats.py @@ -28,7 +28,8 @@ STANDARD_STATS_URL = "https://api.tracker.gg/api/v2/modern-warfare/standard/prof 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)