Feat/Download domains-top-1000.csv from s3 - #55
handecelikkanat wants to merge 11 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.
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.csvfiles, which include the featuresdomain, pages, urls, hosts.cc-crawl-statistics then:
get_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.htmlDecisions, 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.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/