Open bdim404 opened 1 year ago
Works for me:
>>> import feedparser
>>> d = feedparser.parse('https://hackernewsrss.com/feed.xml')
>>> d.keys()
dict_keys(['bozo', 'entries', 'feed', 'headers', 'etag', 'href', 'status', 'encoding', 'version', 'namespaces'])
>>> d["feed"].keys()
dict_keys(['title', 'title_detail', 'subtitle', 'subtitle_detail', 'links', 'link', 'language', 'updated', 'updated_parsed', 'published', 'published_parsed', 'sy_updateperiod', 'image'])
>>> d["feed"]["title"]
'Hacker News RSS Feed'
>>>
Ok, I got it! Thanks for your reply!
I had a similar problem with 6.0.11, tried downgrading to 6.0.3 and the issue is no longer.
I have encountered an issue when using the feedparser library to parse RSS directly from a URL. For example:
This results in the following error:
However, when I download the XML file to my local system and parse it using feedparser's local file reading method, it works correctly, as shown below:
I believe this may be a potential bug, as it should be possible to parse content directly from an RSS URL. I would appreciate it if this issue could be addressed. Thank you!