*So here is my program, I'm pulling some information off of my Snipt feed ..
*

import feedparser

d = feedparser.parse('http://snipt.net/dorseye/feed')

x=0
for i in d['entries']:
    print d['entries'][x].title
    print d['entries'][x].summary
    print
    x+=1

*Output*

Explode / Implode List
>>> V = list(V)
>>> V
['s', 'p', 'a', 'm', 'm', 'y']
>>> V = ''.join(V)
>>> V
'spammy'
>>>

I know, for example, that the > code means >, but what I don't know is
how to convert it in all my data to show properly? In all the feedparser
examples it just smoothly has the output correct (like in one the data was
<span>whatever</span> and it had the special characters just fine.) I didn't
notice any special call on their feedparser.parse() and I can't seem to find
anything in the feedparser documentation that addresses this. Has anyone run
into this before? Thanks!
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to