HaveF / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

Unhandled feed entry date string #371

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://feeds2.feedburner.com/ziffdavis/cgh264video

This feed has an unsupported date string. It's essentially the string handled 
by _parse_date_w3dtf, but the date portion is only one digit long. Example: 
Wed, 8 Sep 2010 12:00:00 EST.

Original issue reported on code.google.com by Stephen....@gmail.com on 13 Aug 2012 at 1:54

GoogleCodeExporter commented 9 years ago
What version of feedparser are you using? I tried your feed with the latest 
codebase and I couldn't see any problem. Maybe you could add some more 
information or an short example which shows your problem. Here is my short code 
which parses your feed:

In [1]: import feedparser

In [2]: f = 
feedparser.parse('http://feeds2.feedburner.com/ziffdavis/cgh264video')

In [3]: f.entries[2]['published']
Out[3]: u'Wed, 8 Sep 2010 12:00:00 EST'

In [4]: f.entries[2]['published_parsed']
Out[4]: time.struct_time(tm_year=2010, tm_mon=9, tm_mday=8, tm_hour=17, 
tm_min=0, tm_sec=0, tm_wday=2, tm_yday=251, tm_isdst=0)

Original comment by schla...@gmail.com on 7 Sep 2012 at 7:30

GoogleCodeExporter commented 9 years ago
This has previously been fixed. Please upgrade to feedparser 5.1.2 and report 
back if you're still seeing this problem. Thanks!

Original comment by kurtmckee on 19 Nov 2012 at 4:22