Comments (4)
You didn't show what the value of url
is, that's an easy way to get just the front page: don't use url = "commoncrawl.org/*"
, leave off the final "*"
.
from cdx_toolkit.
True .. I've forgot that one.
I'd like to get all all front pages from one specific TLD.
It seems as if:
url = '.co.uk/' and url = '.co.uk/' and url = '.co.uk' are just doing the same and get all URLs from one domain in the index.
Conceptually speaking:
cdx = cdx_toolkit.CDXFetcher(source='cc')
is retreiving the index
and the iter method will still send one request per URL to Amazon?
In this case, I could iterate through my URLs without using the index and just retrieve the HTML from the crawl files and it would cause the same amount of requests?
(I was looking to reduce the amount of requests, if that's anyhow possible)
from cdx_toolkit.
Unfortunately that's a hard-to-explain aspect of the cdx index. "*.co.uk" is actually a query for the surt "^co.uk.". You could add an additional regex filter on the url, but then you're descending into the swamp of details of exactly how surts are computed... does "pbm.com/" turn into "com.pbm)" or "com.pbm)/"? Only experimentation will tell you.
from cdx_toolkit.
Ok, I see. I'll try around there and check the results.
Thank you.
from cdx_toolkit.
Related Issues (17)
- 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
- Command-line tools are shipped with non-portable Python runtime HOT 3
- WET-files HOT 1
- 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.