Comments (5)
The code already retries 10 times for 30 seconds each.
Common Crawl's index server has been having problems with someone who's fetching data from thousands of AWS EC2 nodes. That person is making the CC server more unreliable than usual.
If you'd like to restart your computation roughly where it went off, you can use timestamps to do that.
If you'd like to make sure your code doesn't get one of these errors in the middle of the iteration, you can raise the maximum in the line if connect_errors > 10
in myrequests.py
from cdx_toolkit.
okay got it. can you give support to increase this on itor with kwargs ?
from cdx_toolkit.
Yeah, I recall thinking about that potentially being a problem when I wrote the code :-) really I should raise the limits until it always works for the typical cdx server -- I just need to convince it to complain visibly after enough failures (i.e. --source hostname that resolves but no one's there) without making the test suite run longer (it's already a little annoying.)
from cdx_toolkit.
I just pushed a new version which tries 10x more times to connect, while failing fast if the hostname DNS fails. That ought to be enough to battle through CC's occasional problems.
from cdx_toolkit.
thanks
from cdx_toolkit.
Related Issues (18)
- here is some usage examples HOT 2
- [Question] HOT 3
- make fetching capture contents a visible API HOT 1
- "ValueError('invalid hostname in url '+url) from None" when accessing internet archive CaptureObject.content HOT 2
- next(CDXFetcherIter) hangs when cc request returns 400/404 HOT 2
- new Common Crawl year indices HOT 2
- 404 seen for API call HOT 1
- Results not complete for Common Crawl index 2012 HOT 1
- Retrieving objects for a set or list of URL's in parallel HOT 3
- `collinfo.json` URL returning empty list HOT 2
- myrequests.py gets stuck in a loop if the response status is always 429, 500, 502, 503, 504, 509 HOT 3
- CommonCrawl index date range code is broken HOT 5
- ... HOT 1
- Command-line tools are shipped with non-portable Python runtime HOT 3
- WET-files HOT 1
- Is it possible to get only one URL of one domain from a TLD? HOT 4
- Filters and url of crawled page in python client HOT 4
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 cdx_toolkit.