Feat/Download domains-top-1000.csv from s3 - #55
handecelikkanat wants to merge 13 commits into
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? |
…hange in crawl-tools
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.
|
| The table below shows the top 500 registered domains (in terms of page captures) of the last main/monthly crawl | ||
| ({{ site.latest_crawl }}). The underlying data is also provided in CSV format, see [domains-top-500.csv](./domains-top-500.csv). | ||
| The table below shows the top 1000 registered domains (in terms of page captures) of the last main/monthly crawl | ||
| ({{ site.latest_crawl }}). The underlying data is also provided in CSV format, see [domains-top-1000.csv](./domains-top-1000.csv). |
There was a problem hiding this comment.
I am leaving this file (repo-only) uncompressed, so its easier for the github.io users to open.
|
@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 |
As part of the task to prepare and publish domains-top-N.csv files as part of the crawl pipeline, some processing that was previously done here is moved to main pipeline.
In particular, main pipeline now takes over:
domains-top-1000-extended.csv.gzfiles, which include the featuresdomain, pages, urls, hosts.cc-crawl-statistics then:
domains-top-1000-extended.csv.gzinget_stats.shplot/domain.pyinplot.shdomain.pycombined the features from the read file + calculates and combines %pages and %urls features (using the size information from the argument excerpt)domains.htmlTo-Do just before merging, after cc-crawl-statistics is updated by the crawl operator:
mainshould now shows October in crawlstats.py as latest crawl)Decisions, please check:
stats/{crawl}.gzfiles (ie. does not changecrawlstats.pyandrun_stats_hadoop.py, to ensure compatibility with previous files.stats/excerpt/domain.json.gz, in case another downstream user needs it.Validation:
I tested this setup using the Docker container and a test csv file that I upload beforehand to the test bucket.
@sebastian-nagel I left this file there so you too can test if you like using this.
Some settings are needed:
If
CC-MAIN-2026-39is the latest crawl incrawlstats.py, comment it out. Use August 2026 crawl (CC-MAIN-2026-34) as latest instead.In
get_stats.sh, I had to add a|| trueat the end of line that reads from AWS each top-domains file, because for test purposes I have only one. This I will not commit to the eventual version because Id need the script to fail on prod.We can make this a command line argument, but didnt look worthy to bog down the script to me.
Thoughts?
ie.:
http://localhost:4000/