New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sitemap improvements: gz support + application/xml + extraHops fix #511
Conversation
- support parsing sitemap urls that end in .gz with gzip decompression - ignore extraHops for sitemap found URLs by setting to past extraHops limit (otherwise, all sitemap URLs would be treated as links from seed page)
We may also want to add a test for a gzipped sitemap, if we can find a stable one to test against? |
Only one I found is for www.pinterest.com - that's where it occurred, could add as a test, or maybe wait till we find something else.. |
Hm that's fair, maybe we wait, or could host our own on a domain we own at some point for tests? If it's been testing manually for Pinterest (I will do that now too), then can probably merge without adding that test now to keep tests from getting too brittle. Doing a bit more testing now and then will approve if all looks good. |
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.
Tested and working well, other than failing exclusions test in 1.0.3-release
add test with application/xml sitemap
sitemap improvements: gz support + application/xml + extraHops fix #511 - follow up to #496 - support parsing sitemap urls that end in .gz with gzip decompression - support both `application/xml` and `text/xml` as valid sitemap content-types (add test for both) - ignore extraHops for sitemap found URLs by setting to past extraHops limit (otherwise, all sitemap URLs would be treated as links from seed page) fixes redirected seed (from #476) being counted against page limit: #509 - subtract extraSeeds when computing limit - don't include redirect seeds in seen list when serializing - tests: adjust saved-state-test to also check total pages when crawl is done fixes #508
sitemap fixes, follow up to #496
application/xml
andtext/xml
as valid sitemap content-types (add test for both)