rss - Why feedparser for Python does not see all elements in the feed -
I use the following code:
import feedparser as FP If __name__ == '__main__': Url = 'http://www.careerbuilder.de/RTQ/rss20.aspx?rssid=RSS_PD&num=25&geoip=false&ddcompany=false&ddtitle=false&cat=JN038 To enter 'd = fp.parse (URL): Print entry print' ---------------------- ' < P> One result, I found: {'guidislink': 0, 'published': U'Wed, 23 April 2014 04:00:00 Z, 'published_parts': Time.struct_time (tm_year = 2014, tm_mon = 4, tm_mday = 23, tm_hour = 4, tm_min = 0, tm_sec = 0, tm_wday = 2, tm_y Day = 113, tm_isdst = 0), 'title': u'bankkaufmann (m / w) '} - ---------------------' Gidicilak ': 0, 'Publish': U 'Wade, 23 April 2014 04:00:00 Z,' published_parced ': Time.struct_time (tm_year = 2014, tm_mon = 4, tm_mday = 23, tm_hour = 4, tm_min = 0, tm_sec = 0, tm_wday = 2, tm_yday = 113, tm_isdst = 0), 'title': u'Anlagenbuchhalter (m / w) '} --------------------- - {'Giddicilink': 0, 'Publish': U 'Wade, April 23, 2014 04: 0:00 Z,' published_parts': Time.stroke_time (TM_Ire = 2014, TM_On = 4, TM_MDE = 23, TM_Hor = 4 , TM_min = 0, TM_SC = 0, TM_Wade = 2, TM_AYED = 113, T M_ISDS = 0), 'Title': U'bankCoufLutt (m / w) '} ---------------------- < P> It appears that the entries in the feed do not contain "summary" and "link" element if I try to use entry.summary or entry.description I get an error message. This is strange to me because I see link and description elements in the feed for feed, if I open it in my browser. Does anyone know what I am doing? From
:
Universal Feed Parser 3.0b18 on February 17, 2004.
- Always show the description of the map for the summary_date (endry)
- Use libxml2 (if available)
And
Some RSS feeds use the grid, when they mean a link, the grid can also be used as an opaque identifier, which has nothing to do with the link . If an RSS feed uses the grid as an entry link and the link is not available, the Universal Feed Parser detects this and this grid is d.entries [i] .link .link . > Maybe that's why I use entry.link and < Code> entry.description without any errors, though print entry. Key () returns ['summary_detail', 'published_parsed', 'links',' title ',' summary ',' guidislink ',' title_detail ',' link ',' Published ',' id ']
Comments
Post a Comment