Python Xml Parsing Not Working For Some Sites
I have a very basic XML parser based on the tutorial provided here, for the purpose of reading RSS feeds in Python. def GetRSS(RSSurl): url_info = urllib.urlopen(RSSurl) i
Solution 1:
The error is here:
foritem_nodein xmldoc.documentElement.childNodes:
if (item_node.nodeName == "item"):
There is no root item
element, just a channel
. I found this out by just printing all the values of nodeName
in the loop.
Post a Comment for "Python Xml Parsing Not Working For Some Sites"