-
-
Notifications
You must be signed in to change notification settings - Fork 85
Major rewrite to update robots_txt for new metrics. #236
Conversation
Discussed in comment here: HTTPArchive/almanac.httparchive.org#2351 (comment). The linter is going to complain and I will fix. I stink at JS.
BTW I haven't added the linter to this repo yet - but on my to do list! Depends whether we retire this repo (as it's name suggests!) or think it's worth adding in the meantime. Probably worth adding to be honest so will have a look... |
Test 1: https://www.google.comStatus: Passed
Test 2: https://www.apple.comStatus: Pass
Test 3: https://anotherbrokenegg.com/Status: Pass
Test 4: https://ncbagel.com/Status: Passed
Test 5: https://www.towernc.com/Status: Passed
Test 6: https://www.johnmu.com/Status: Passed
Test 7: https://www.all-laundry.com/Status: Passed
Test 8: https://www.linkedin.com/Status: Passed
|
Made adjustments to correct for testing errors. I decided to not handle returning no data for 40X/50X errors as 1) It would make the code more complex, and 2) Users can easily configure queries to exclude non-200 queries. |
There is a bug in this script when tested on johnmu.com in that it reports URL fragments as comments. I need to update to correct for this. |
I think I am ready for review. I have updated to 8 test cases that cover various use-cases. Please let me know if there is anything else needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the thorough tests!
Discussed in comment here: HTTPArchive/almanac.httparchive.org#2351 (comment). The linter is going to complain and I will fix. I stink at JS.