Comments (2)
I did not use cdx server api before so I don't know its behavior before but it seems that with a large page number, the request would eventually return 400, for example with page=0
https://index.commoncrawl.org/CC-MAIN-2020-50-index?url=http%3A%2F%2Fwww.illinoishomepage.net%2Fnews%2Flocal-news%2Fman-who-fell-through-ice-dies&output=json&page=0
return 404, text is "error no capture".
But with page=1,
https://index.commoncrawl.org/CC-MAIN-2020-50-index?url=http%3A%2F%2Fwww.illinoishomepage.net%2Fnews%2Flocal-news%2Fman-who-fell-through-ice-dies&output=json&page=1
returns 400 and get_more()
will move to next endpoint.
But for my example above, for CC-MAIN-2017-34-index, no matter what the page number is, for example, page=1000000, https://index.commoncrawl.org/CC-MAIN-2017-34-index?url=http%3A%2F%2Fwww.illinoishomepage.net%2Fnews%2Flocal-news%2Fman-who-fell-through-ice-dies&output=json&page=1000000
still returns 404 with text "error no capture". And get_more()
will keep increasing the page number and retry.
from cdx_toolkit.
Sebastian fixed this bug on the Common Crawl side, it was a missing index file for just that one index. It happened because the index moved to a new server recently. Thanks for finding it!
I will add some kind of guard to the code, so this infinite loop is at least a visible infinite loop.
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
- 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
- Read timed out HOT 5
- 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.