diff --git a/uqcsbot/advent.py b/uqcsbot/advent.py index 30658f8..00c466a 100644 --- a/uqcsbot/advent.py +++ b/uqcsbot/advent.py @@ -356,6 +356,7 @@ def _get_leaderboard_json(self, year: int, code: int) -> Json: response = requests.get( LEADERBOARD_URL.format(year=year, code=code), cookies={"session": self.session_id}, + headers={"user-agent": "github.com/UQComputingSociety/uqcsbot-discord"}, allow_redirects=False, # Will redirct to home page if session token is out of date ) except RequestException as exception: