Git Product home page Git Product logo

Comments (4)

wumpus avatar wumpus commented on June 2, 2024

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.

Chris8080 avatar Chris8080 commented on June 2, 2024

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.

wumpus avatar wumpus commented on June 2, 2024

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.

Chris8080 avatar Chris8080 commented on June 2, 2024

Ok, I see. I'll try around there and check the results.
Thank you.

from cdx_toolkit.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.