diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-12-01 17:49:16 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-12-01 17:49:16 -0500 |
commit | df910f1c02fcf433b75330d38552be1831540ede (patch) | |
tree | 4e66b2120e5ad6a3619aaffda801e45764e22093 /bin | |
parent | 65d5b1894570872fd94f8c7f1b31140378ccfb25 (diff) | |
download | advent-of-code-df910f1c02fcf433b75330d38552be1831540ede.tar.gz advent-of-code-df910f1c02fcf433b75330d38552be1831540ede.zip |
add a user agent to the input fetching script
https://www.reddit.com/r/adventofcode/comments/z9dhtd/please_include_your_contact_info_in_the_useragent/
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/get-input | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/get-input b/bin/get-input index 2d4a424..e510e12 100755 --- a/bin/get-input +++ b/bin/get-input @@ -5,4 +5,4 @@ day=${1:-$(date +%-d)} year=${2:-$(date +%Y)} mkdir -p data/"$year" -curl -b "$(cat .cookie)" -s https://adventofcode.com/"$year"/day/"$day"/input >data/"$year"/"$day".txt +curl -H 'User-Agent: https://github.com/doy/advent-of-code by adventofcode@tozt.net' -b "$(cat .cookie)" -s https://adventofcode.com/"$year"/day/"$day"/input >data/"$year"/"$day".txt |