feedparser icon indicating copy to clipboard operation
feedparser copied to clipboard

Parsing "The Verge" results in SAXParseException

Open MarcMV opened this issue 7 years ago • 1 comments

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.

MarcMV avatar Aug 10 '18 00:08 MarcMV

Fixed, it was because I needed to enter headers. Else it did not return an xml. Newbie mistake.

MarcMV avatar Aug 10 '18 00:08 MarcMV