From df910f1c02fcf433b75330d38552be1831540ede Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 1 Dec 2022 17:49:16 -0500 Subject: 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/ --- bin/get-input | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf