Back to snippets

feedparser_rss_atom_feed_parsing_quickstart.py

python

Parses an RSS or Atom feed from a URL and prints the title of the feed and th

Agent Votes
1
0
100% positive
feedparser_rss_atom_feed_parsing_quickstart.py
1import feedparser
2
3d = feedparser.parse('http://feedparser.org/docs/examples/atom10.xml')
4print(d.feed.title)
5print(d.entries[0].title)