Hello I am getting the following error when using Feedparser:
raise UndeclaredNamespace, "'%s' is not associated with a namespace" % givenprefix feedparser.UndeclaredNamespace: 'media' is not associated with a namespace
I have managed to narrow it down to one feed which is the cause:
I am writing a web scraper which uses Feedparser and Beautiful soup to scrape news articles from various rss feed that I am interested in, I am writing this using Python.
The error message is this:
feed = feedparser.parse(in_feed)
File "/usr/lib/python2.7/dist-packages/feedparser.py", line 4014, in parse
saxparser.parse(source)
File "/usr/lib/python2.7/dist-packages/drv_libxml2.py", line 208, in parse
eltName,eltQName,attributesNSImpl)
File "/usr/lib/python2.7/dist-packages/feedparser.py", line 1809, in startElementNS
raise UndeclaredNamespace, "'%s' is not associated with a namespace" % givenprefix
feedparser.UndeclaredNamespace: 'media' is not associated with a namespace
All other feeds are ok. Can someone give me some advice regarding this please.