feedparser
feedparser copied to clipboard
Parsing "The Verge" results in SAXParseException
Parsing The Verge: https://www.theverge.com/rss/full.xml returns
Parsed Feed: {'bozo_exception': SAXParseException('syntax error',), 'feed': {}, 'bozo': 1, 'version': '', 'entries': [], 'encoding': 'utf-8', 'namespaces': {}}
Bozo: 1
Exception type: <unknown>:2:0: syntax error
Exception message: syntax error
Exception line number: 2
Parsed Feed: {'bozo_exception': SAXParseException('syntax error',), 'feed': {}, 'bozo': 1, 'version': '', 'entries': [], 'encoding': 'utf-8', 'namespaces': {}}
I looked into their xml source code and do not spot why it's failing.
Fixed, it was because I needed to enter headers. Else it did not return an xml. Newbie mistake.