Answer by Michael Anderson for lxml - difficulty parsing stackexchange rss feed
The problem is namespaces.Run this : cooking_parsed.getroot().tagAnd you'll see that the element is namespaced as{http://www.w3.org/2005/Atom}feedSimilarly if you navigate to one of the feed...
View ArticleAnswer by gfortune for lxml - difficulty parsing stackexchange rss feed
Take a look at these two versionsimport lxml.html, lxml.etreeurl_cooking = 'http://cooking.stackexchange.com/feeds'#lxml.etree versiondata = lxml.etree.parse(url_cooking)summary_nodes =...
View ArticleAnswer by user850498 for lxml - difficulty parsing stackexchange rss feed
Try using BeautifulStoneSoup from the beautifulsoup import.It might do the trick.
View Articlelxml - difficulty parsing stackexchange rss feed
HiaI am having problems parsing an rss feed from stackexchange in python.When I try to get the summary nodes, an empty list is returnI have been trying to solve this, but can't get my head around.Can...
View Article
More Pages to Explore .....