From 2858395e485c9db93fb2edc3a4e7c45f1234daec Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Sun, 4 Dec 2022 10:25:46 -0500 Subject: [PATCH] Add contact info to user agent --- download.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/download.py b/download.py index 3261ab9..10182d5 100644 --- a/download.py +++ b/download.py @@ -15,10 +15,12 @@ import click import coloredlogs import dateutil.relativedelta import requests +import requests.utils import yaspin LOG = logging.getLogger(__name__) +requests.utils.default_user_agent = lambda: "aoc-get by nick@ollien.com" @dataclasses.dataclass class PuzzleDate: