Repository: wimglenn/advent-of-code-data

Issue:
Include contact information in the user agent, otherwise it will be blocked
https://www.reddit.com/r/adventofcode/comments/z9dhtd/please_include_your_contact_info_in_the_useragent/

Discussion:
codecov[bot]: # [Codecov](https://codecov.io/gh/wimglenn/advent-of-code-data/pull/91?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wim+glenn) Report
> Merging [#91](https://codecov.io/gh/wimglenn/advent-of-code-data/pull/91?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wim+glenn) (e954e23) into [main](https://codecov.io/gh/wimglenn/advent-of-code-data/commit/d24b4e9fce3eb2e7a6600235132464f42ac32ebf?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wim+glenn) (d24b4e9) will **decrease** coverage by `0.13%`.
> The diff coverage is `100.00%`.

```diff
@@            Coverage Diff             @@
##             main      #91      +/-   ##
==========================================
- Coverage   93.36%   93.22%   -0.14%     
==========================================
  Files          24       24              
  Lines        2094     2096       +2     
  Branches      266      266              
==========================================
- Hits         1955     1954       -1     
- Misses        111      113       +2     
- Partials       28       29       +1     
```


| [Impacted Files](https://codecov.io/gh/wimglenn/advent-of-code-data/pull/91?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wim+glenn) | Coverage Δ | |
|---|---|---|
| [aocd/models.py](https://codecov.io/gh/wimglenn/advent-of-code-data/pull/91/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wim+glenn#diff-YW9jZC9tb2RlbHMucHk=) | `93.27% <100.00%> (+0.01%)` | :arrow_up: |
| [aocd/version.py](https://codecov.io/gh/wimglenn/advent-of-code-data/pull/91/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wim+glenn#diff-YW9jZC92ZXJzaW9uLnB5) | `100.00% <100.00%> (ø)` | |
| [tests/test\_get\_data.py](https://codecov.io/gh/wimglenn/advent-of-code-data/pull/91/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wim+glenn#diff-dGVzdHMvdGVzdF9nZXRfZGF0YS5weQ==) | `100.00% <100.00%> (ø)` | |
| [aocd/\_\_init\_\_.py](https://codecov.io/gh/wimglenn/advent-of-code-data/pull/91/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wim+glenn#diff-YW9jZC9fX2luaXRfXy5weQ==) | `94.00% <0.00%> (-6.00%)` | :arrow_down: |

:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wim+glenn)


Patch:
diff --git a/aocd/models.py b/aocd/models.py
index 8db94ee..8b13adf 100644
--- a/aocd/models.py
+++ b/aocd/models.py
@@ -40,7 +40,7 @@ log = logging.getLogger(__name__)
 AOCD_DATA_DIR = os.path.expanduser(os.environ.get("AOCD_DIR", os.path.join("~", ".config", "aocd")))
 AOCD_CONFIG_DIR = os.path.expanduser(os.environ.get("AOCD_CONFIG_DIR", AOCD_DATA_DIR))
 URL = "https://adventofcode.com/{year}/day/{day}"
-USER_AGENT = {"User-Agent": "advent-of-code-data v{}".format(__version__)}
+USER_AGENT = {"User-Agent": "github.com/wimglenn/advent-of-code-data v{} by hey@wimglenn.com".format(__version__)}
 
 
 class User(object):
diff --git a/aocd/version.py b/aocd/version.py
index bc86c94..10aa336 100644
--- a/aocd/version.py
+++ b/aocd/version.py
@@ -1,1 +1,1 @@
-__version__ = "1.2.2"
+__version__ = "1.2.3"


Test patch:
diff --git a/tests/test_get_data.py b/tests/test_get_data.py
index a8e4021..d19f2c8 100644
--- a/tests/test_get_data.py
+++ b/tests/test_get_data.py
@@ -102,7 +102,7 @@ def test_aocd_user_agent_in_req_headers(requests_mock):
     aocd.get_data(year=2018, day=1)
     assert mock.call_count == 1
     headers = mock.last_request._request.headers
-    expected = "advent-of-code-data v{}".format(aocd.__version__)
+    expected = "github.com/wimglenn/advent-of-code-data v{} by hey@wimglenn.com".format(aocd.__version__)
     assert headers["User-Agent"] == expected