Skip to content

Instantly share code, notes, and snippets.

@romilly
Created June 23, 2016 12:44
Show Gist options
  • Save romilly/534138e6a249fb44e0f6045d37e34a82 to your computer and use it in GitHub Desktop.
Save romilly/534138e6a249fb44e0f6045d37e34a82 to your computer and use it in GitHub Desktop.
import feedparser
feed = feedparser.parse('http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml')
print feed['feed']['title']
print len(feed)
@romilly
Copy link
Author

romilly commented Jun 23, 2016

Reads an rss feed, prints title and number of items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment