Repository navigation
Feat/Download domains-top-1000.csv from s3 - #55
Conversation
|
@sebastian-nagel I intend to not touch I will update Let me know if you prefer to update everything all at once. I thought if current system fails, its good to have the old one also running in parallel for another month. Plus I think some other stats calculations use these domain numbers, which I dont want to mess with. Opinions? |
sebastian-nagel
left a comment
There was a problem hiding this comment.
Thanks, @handecelikkanat. Looks good.
Don't forget: the top-500 domain files (CSV and HTML) need to be removed from Git and replaced by the top-1000 files. This should be part of the PR.
|
|
@sebastian-nagel Converted internal (extended) file to compressed. Ready for your review. Intentionally left as "Draft" so I dont accidentally merge before completing the To-Do items after crawl, noted above with checkboxes to tick. Those will create the new |
sebastian-nagel
left a comment
There was a problem hiding this comment.
Thanks, @handecelikkanat.
Looks good. The many errors when running get_stats.sh are somewhat annoying.
…hange in crawl-tools
0fbc848 to
77d1971
Compare
|
@sebastian-nagel Regarding approximate numbers in pre-change version of cc-crawl-statistics (#14): Im seeing a bit too big changes in the current version for Is this normal to get so many differences? Do we get so many results from those? |
Co-authored-by: Luca Foppiano <luca@foppiano.org>
|
@lfoppiano TYVM for the excellent suggestions! I applied some of yours and kept some of mine:
|
Generated from the published top domains file of CC-MAIN-2026-39. Replaces the 500-row content carried over by the previous rename commit.
Changes
get_stats.sh: also downloads the top domains file of the latest crawl,s3://commoncrawl/crawl-analysis/<crawl>/stats/domains-top-1000-extended.csv.gz, intostats/top-domains/. Only the latest crawl's file is fetched, since only that one isplotted. The script now fails if the latest crawl's stats file is missing or not valid
gzip, e.g. an error page saved by curl. For testing, the source location can be
overridden with
TOP_DOMAINS_S3orTOP_DOMAINS_URL.plot/domain.py: reads the downloaded file (domain, pages, urls, hosts) and checks itscolumns.
%pagesand%urlsare computed from the crawl totals as before.plot.sh:domain.pynow only needs the crawl size records, so it readsstats/excerpt/size.json.gz.plots/domains-top-500.*renamed toplots/domains-top-1000.*, regenerated withCC-MAIN-2026-39.
plots/domains.mdandindex.mdupdated accordingly..gitignore: ignorestats/top-domains/, created byget_stats.sh.Changes in the data
CC-MAIN-2026-39).
total. The previous counts were approximate: a host whose URLs were split across two
input shards was counted twice, cf. Host counts can be off by +1 (higher than actual) #14 . The new counts are exact, from the columnar index.
Breaking change
Links to
plots/domains-top-500.csvandplots/domains-top-500.htmlstop working.The 500 versions are no longer provided; the data page links the new files. The change
will be announced together with the upcoming Croissant metadata release.
Notes
stats/excerpt/domain.json.gzis still built, althoughdomain.pyno longer reads it.Kept in case it is used elsewhere.