Add contact info to user agent

master
Nick Krichevsky 2022-12-04 10:25:46 -05:00
parent 0ab6b505d6
commit 2858395e48
1 changed files with 2 additions and 0 deletions

View File

@ -15,10 +15,12 @@ import click
import coloredlogs import coloredlogs
import dateutil.relativedelta import dateutil.relativedelta
import requests import requests
import requests.utils
import yaspin import yaspin
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)
requests.utils.default_user_agent = lambda: "aoc-get by nick@ollien.com"
@dataclasses.dataclass @dataclasses.dataclass
class PuzzleDate: class PuzzleDate: