CommonCrawl

class CommonCrawl(index, *, session=None, delay=1.0)[source]

Serial, retrying collection. All-page traversal is explicit, not default.

A checkpoint stores host summaries after each completed page. Retrying the same query resumes there; errors never become a successful empty result.

Parameters:
  • index (str)

  • session (Session | None)

  • delay (float)

close()[source]

Close the HTTP session only when this client created it.

collect(suffix, *, max_pages=1, checkpoint=None)[source]

Return host observations, not URL rows or government ownership claims.

max_pages is a total page budget including checkpointed pages. None traverses every page reported for this query. Checkpoints are tied to the index and suffix and can be resumed with a larger budget.

Parameters:
  • suffix (str)

  • max_pages (int | None)

  • checkpoint (str | Path | None)

Return type:

Snapshot