Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSitemapSpider throws lxml.etree.XMLSyntaxError when trying to scrape a blank sitemap page #4211
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
SitemapSpiderthrows alxml.etree.XMLSyntaxErrorwhen hitting a blank sitemap page while crawling a sitemap.Example sitemap with blank pages: https://bikeradar.com/sitemap.xml
Stack trace
Steps to Reproduce
.xmlpageExpected behavior:
Handle the
XMLSyntaxErrorby logging a warning for an invalid sitemap page and returning.Actual behavior:
Throws
XMLSyntaxErrorVersions
Scrapy version 1.7.2