I'm trying to get the dates from entries in two different RSS feeds through feedparser.
Here is what I'm doing:
import feedparser as fp
reddit = fp.parse("http://www.reddit.com/.rss")
cc = fp.parse("http://contentconsumer.com/feed")
Wed, 15 Oct 2008 10:06:10 +0000
Parsing of dates is a pain with RSS feeds in-the-wild, and that's where
feedparser can be a big help.
If you use the
*_parsed properties (like
feedparser will have done the work and will return a 9-tuple Python date in UTC.
See http://packages.python.org/feedparser/date-parsing.html for more gory details.