Closed GoogleCodeExporter closed 9 years ago
This is happening because the feed is not wellformed. In particular, the very
first item contains the following line:
<title>Fenerbahçde Emre iç kritik gütle>
Based on the XML around it, that line probably should have looked something
like this:
<title>Fenerbahçde Emre iç kritik gü...</title>
Unfortunately, because the feed is not wellformed, it's impossible to know
exactly what the feed publisher meant. Feedparser tries to recover from the
error, but the result is imperfect (which in this case means that the first
entry's permalink isn't available).
If your software crashed because of this, you can check for the existence of
the key before accessing it:
if 'link' in a['items'][0]:
# do something with the permalink
The problem lies with the feed publishing software, and I don't see a better
way to recover from the error, so I'm going to close this report.
Original comment by kurtmckee
on 15 Dec 2011 at 8:41
Original issue reported on code.google.com by
fresk...@gmail.com
on 14 Dec 2011 at 8:34Attachments: