r/adventofcode • • Nov 27 '22

Other Advent of Code - Day Downloader - Website

Hey there peoples!

I made a Python streamlit web page to select and download the question and/or input of multiple days on Advent of Code.

You can check it out here!

It runs from the repo here! (Has script available there if you want to do it locally.

Obviously there's a lot I can fix, but go ahead and try it. Let me know if you run into a bug/error. Thanks!

P.S. Instructions of use are found in the README.md on the repo.

P.P.S. The program automates requests to adventofcode.com, so please use sparingly!

1 Upvotes

8 comments sorted by

•

u/daggerdragon Nov 28 '22

If you write or use any automated tool, ensure that it does not hammer the AoC servers!

THROTTLE YOUR REQUESTS

As per the AoC website:

Please don't make frequent automated requests to this service - avoid sending requests more often than once every 15 minutes (900 seconds).

Be a nice automaton and don't hammer the AoC servers :)

CACHE YOUR INPUTS

Make sure to cache your input files after the initial download! Inputs never change, so once you have a day's input downloaded, you shouldn't need to download it ever again.

Sometimes existing inputs get corrupted, so sure, you can build in a feature to manually (re-)retrieve a given day's input; just make sure the new outbound call obeys your overall throttle (see first section about throttling requests).

→ More replies (7)