Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically fetch example inputs #26

Closed
fspoettel opened this issue Dec 7, 2022 · 1 comment
Closed

Automatically fetch example inputs #26

fspoettel opened this issue Dec 7, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@fspoettel
Copy link
Owner

@NangiDev mentioned:

PS: I saw this Youtuber fetching the example input somehow 🤔 so that should be possible

Edit: I did quick test on one way of fetching example input. Gist
It's not perfect because it highly depends on the text in puzzle description being typed in a particular way. It works for all (1-7) puzzles release so far this year (2022)

If it turns out that this is consistent, it would be neat to support this. We already download the puzzle by default now, maybe we can parse it from the markdown.

@fspoettel fspoettel added the enhancement New feature or request label Dec 7, 2022
@fspoettel
Copy link
Owner Author

I checked some more examples and the assumption does not hold up for all days. some days e.g. contain multiple examples: https://adventofcode.com/2022/day/25. for most days, the primary example is the first pre tag, while for others, it's the second: https://adventofcode.com/2022/day/17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant