How to parse the "<media:group>" using feedparser?
Posted
by Wayle.C
on Stack Overflow
See other posts from Stack Overflow
or by Wayle.C
Published on 2010-03-17T11:39:56Z
Indexed on
2010/03/17
11:41 UTC
Read the original article
Hit count: 526
The rss file is shown as below, i want to get the content in section media:group . I check the document of feedparser, but it seems not mention this. How to do it? Any help is appreciated.
XYZ InfoX: Special hello http://www1.XYZInfoX.com/learninghello/home hello en Wed, 17 Mar 2010 08:50:06 GMT 2010-03-17T08:50:06Z en Voice of America http://www1.XYZInfoX.com/learninghello http://media.XYZInfoX.com/designimages/XYZRSSIcon.gif
<item>
<title>Who Were the Deadliest Gunmen of the Wild West?</title>
<link>http://www1.XYZInfoX.com/learninghello/home/Deadliest-Gunmen-of-the-Wild-West-87826807.html</link>
<description> The story of two of them: "Killin'" Jim Miller was an outlaw, "Texas" John Slaughter was a lawman | EXPLORATIONS </description>
<pubDate>Wed, 17 Mar 2010 00:38:48 GMT</pubDate>
<guid isPermaLink="false">87826807</guid>
<dc:creator></dc:creator>
<dc:date>2010-03-17T00:38:48Z</dc:date>
*<media:group>
<media:content url="http://media.XYZInfoX.com/images/archives_peace_comm_480_16mar_se.jpg" medium="image" isDefault="true" height="300" width="480" />
<media:content url="http://media.XYZInfoX.com/images/archives_peace_comm_230_16mar_se_edited-1.jpg" medium="image" isDefault="false" height="230" width="230" />
<media:content url="http://media.XYZInfoX.com/images/tex_trans_lawmans_230_16mar10_se.jpg" medium="image" isDefault="false" height="230" width="230" />
<media:content url="http://www.XYZInfoX.com/MediaAssets2/learninghello/dalet/se-exp-outlaws-part2-17mar2010.Mp3" type="audio/mpeg" medium="audio" isDefault="false" />
</media:group>*
</item>
© Stack Overflow or respective owner