sttr Posted January 19, 2009 Share Posted January 19, 2009 Hello! I want to parse a RSS feed from gametrailers.com and put it on my own website with some of the information included. They use some exInfo tags in their items that dont seem to work with my magpieRSS parser. <item> <pubDate>Sun, 18 Jan 2009 21:29:33 EST</pubDate> <guid isPermaLink="false">44537</guid> <exInfo:movieTitle>TGS 08: Extended Alternate Trailer Direct-Feed HD</exInfo:movieTitle> <exInfo:gameName>Resident Evil 5</exInfo:gameName> <exInfo:gameID>2036</exInfo:gameID> <exInfo:gameURL>http://www.gametrailers.com/game/2036.html</exInfo:gameURL> <title>Resident Evil 5 - TGS 08: Extended Alternate Trailer Direct-Feed HD</title> <exInfo:platform>xb360</exInfo:platform> <exInfo:fileType> <type>flv</type> <fileSize>137955291</fileSize> <link>http://www.gametrailers.com/player/44537.html?r=1&type=flv</link> <embedcode> <![CDATA[ <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="409"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=44537"/> <param name="quality" value="high" /> <embed src="http://www.gametrailers.com/remote_wrap.php?mid=44537" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="409"></embed> </object> ]]> </embedcode> </exInfo:fileType> <exInfo:image>http://www.gametrailers.com/moses/moviesthumbs/44537-re5tgs08altexthd.jpg</exInfo:image> <link>http://www.gametrailers.com/player/44537.html?r=1</link> <description>A new era of bio-terrorism has descended upon us. </description> </item> Do you have any suggestion to good php RSS parsers, or a change to help me create a static parser for this feed only? The RSS feed url is gametrailers.com/rssgenerate.php?s1=&orderby=newest&limit=20 The attributes I want is pubdate, guid, title, exinfo:platform, exinfo:filetype:embedcode, exInfo:image, link and description. Link to comment https://forums.phpfreaks.com/topic/141438-parsing-rss-with-exinfo-tags/ Share on other sites More sharing options...
Prismatic Posted January 19, 2009 Share Posted January 19, 2009 <?php $xml = simplexml_load_file("http://www.gametrailers.com/rssgenerate.php?s1=&orderby=newest&limit=20"); print_r($xml); ?> returns SimpleXMLElement Object ( [@attributes] => Array ( [version] => 2.0 ) [channel] => SimpleXMLElement Object ( [title] => Gametrailers.com - Customized RSS Feed [description] => Gametrailers presents your customized RSS feed [link] => http://www.gametrailers.com/ [image] => SimpleXMLElement Object ( [url] => http://www.gametrailers.com/images/sig.gif [title] => GameTrailers [link] => http://www.gametrailers.com/ ) [language] => en-us [copyright] => Copyright 2005 Gametrailers.com, all rights reserved. [generator] => Gametrailers.com [lastBuildDate] => Mon, 19 Jan 2009 7:30:20 EST [webMaster] => [email protected] (Brent Phillips) [item] => Array ( [0] => SimpleXMLElement Object ( [pubDate] => Sun, 18 Jan 2009 13:28:08 EST [guid] => 44538 [title] => Resident Evil 5 - TGS 08: Extended Alternate Trailer Direct-Feed [link] => http://www.gametrailers.com/player/44538.html?r=1 [description] => A new era of bio-terrorism has descended upon us. ) <truncated out the rest of the entries> ) ) ) Link to comment https://forums.phpfreaks.com/topic/141438-parsing-rss-with-exinfo-tags/#findComment-740345 Share on other sites More sharing options...
sttr Posted January 19, 2009 Author Share Posted January 19, 2009 That dont seem to include the exInfo tags, just the standarized tags. Link to comment https://forums.phpfreaks.com/topic/141438-parsing-rss-with-exinfo-tags/#findComment-740347 Share on other sites More sharing options...
sttr Posted January 20, 2009 Author Share Posted January 20, 2009 Anyone? Link to comment https://forums.phpfreaks.com/topic/141438-parsing-rss-with-exinfo-tags/#findComment-741036 Share on other sites More sharing options...
sttr Posted January 22, 2009 Author Share Posted January 22, 2009 Is there any "Pay to code" websites full of freelancers you can suggest for me? I need help with this issue asap. Link to comment https://forums.phpfreaks.com/topic/141438-parsing-rss-with-exinfo-tags/#findComment-743179 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.