Created
June 23, 2016 12:44
-
-
Save romilly/534138e6a249fb44e0f6045d37e34a82 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reads an rss feed, prints title and number of items