Comments (4)
I'm not sure what the right approach is; I see this tool being used to basically scrape the site. Maybe an increasing throttle would be better? Start with a small delay and gradually increase it?
from advent-of-code-data.
Hey Eric! Yes it's an older version of this app, the User-Agent was added at your request in 2016. Puzzle text, input data, and answers are all cached client-side, so I wouldn't expect to see this coming from the same IP address repeatedly.
Perhaps that's someone using the library in a CI, with a real auth token but not preserving the cache?
Note that implementing this now would not change the behavior of the v0.9.8 release, the current version is v1.1.0.
from advent-of-code-data.
I don't mean they're the exact same request; I mean they're sending lots and lots of different requests all within the same second. I was hoping we could prevent this sort of thing in the future by modifying the code to throttle requests in general.
from advent-of-code-data.
Yes, I understand. I'll try and get this into the next version but I'm not sure it will be in time for Dec 1 :-\
When a client is requesting input data and posting answer within the same second, then it can be that they are validating their existing code is also working on a different dataset. That's a use-case I'm sympathetic with because it happens sometimes that your code works only on your own data set by luck, and one of the main use-cases for this app is to validate your solution actually works across different datasets. So I think throttling to "one request every few seconds" seems a bit too conservative, would a delay of 0.1s between requests be acceptable?
from advent-of-code-data.
Related Issues (20)
- Get response from submission HOT 5
- "chunks" transform HOT 1
- don't submit an answer we know is too low or too high
- Many pytest.raises tests failing HOT 1
- Using the oop interface just prints the description of part 1 HOT 2
- add ability to run aoc runner against sample data(s)
- Cache easter eggs HOT 2
- Transform for single line numberic data
- Why can't days have a leading zero for frame inspector date finder? HOT 2
- Allow choosing user by identifier in tokens.json HOT 1
- Include type information HOT 2
- expose functions in cookies.py HOT 2
- dependency issues on pip install HOT 2
- User.get_stats() throws an error if no stars have been collected for a year HOT 1
- Include contact information in the user agent, otherwise it will be blocked HOT 1
- filename date extraction magic fails when run from jupyterlab / .ipynb file HOT 8
- Proxy not used HOT 3
- No name "Puzzle" in module "aocd" HOT 7
- Add typecheck (int, float, str) to aocd.models.puzzle.answer_a/b? HOT 7
- example data is not parsed correctly HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from advent-of-code-data.