Created
May 1, 2010 18:31
-
-
Save navarr/386558 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$xml = simplexml_load_file("http://backend.deviantart.com/rss.xml?q=gallery:pokesensei&limit=5"); | |
foreach($xml->channel->item as $item) | |
{ | |
$media = $item->children("http://search.yahoo.com/mrss/"); | |
$thumb = $media->thumbnail[1]->attributes(); | |
?> | |
<img src="<?= $thumb["url"] ?>" title="<?= $item->title ?>" style="width:<?= $thumb["width"] ?>px;height:<?= $thumb["height"] ?>px;" /> | |
<?php } ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"> | |
<channel> | |
<title>pokesensei's gallery</title> | |
<link>http://browse.deviantart.com/?order=5&q=gallery%3Apokesensei</link> | |
<description>deviantART RSS for sort:time gallery:pokesensei</description> | |
<language>en-us</language> | |
<copyright>Copyright 2010, deviantART.com</copyright> | |
<pubDate>Sat, 01 May 2010 11:24:16 PDT</pubDate> | |
<generator>deviantART.com</generator> | |
<docs>http://blogs.law.harvard.edu/tech/rss</docs> | |
<atom:icon>http://s.deviantart.com/minish/widgets/apple-touch-icon-precomposed.png</atom:icon> | |
<atom:link href="http://backend.deviantart.com/rss.xml?q=+sort%3Atime+gallery%3Apokesensei&type=deviation" rel="self" type="application/rss+xml" /> | |
<atom:link rel="next" href="http://backend.deviantart.com/rss.xml?q=+sort%3Atime+gallery%3Apokesensei&type=deviation&offset=5" /> | |
<item> | |
<title>Taken Over by Writers</title> | |
<link>http://PokeSensei.deviantart.com/art/Taken-Over-by-Writers-154651285</link> | |
<guid isPermaLink="true">http://PokeSensei.deviantart.com/art/Taken-Over-by-Writers-154651285</guid> | |
<pubDate>Fri, 19 Feb 2010 01:41:32 PST</pubDate> | |
<media:title type="plain">Taken Over by Writers</media:title> | |
<media:keywords></media:keywords> | |
<media:rating>nonadult</media:rating> | |
<media:category label="Windows">customization/screenshots/windows</media:category> | |
<media:credit role="author" scheme="urn:ebu">PokeSensei</media:credit> | |
<media:credit role="author" scheme="urn:ebu">http://a.deviantart.net/avatars/p/o/pokesensei.png?2</media:credit> | |
<media:copyright url="http://pokesensei.deviantart.com">Copyright 2010 ~PokeSensei</media:copyright> | |
<media:thumbnail url="http://th08.deviantart.net/fs71/300W/i/2010/050/e/2/Taken_Over_by_Writers_by_PokeSensei.jpg" height="181" width="300"/> | |
<media:thumbnail url="http://th08.deviantart.net/fs71/150/i/2010/050/e/2/Taken_Over_by_Writers_by_PokeSensei.jpg" height="91" width="150"/> | |
<media:content url="http://fc08.deviantart.net/fs71/i/2010/050/e/2/Taken_Over_by_Writers_by_PokeSensei.jpg" height="544" width="900" medium="image"/> | |
<media:content url="http://www.deviantart.com/download/154651285/" medium="document"/> | |
<description><![CDATA[ As we all know, deviantART was earlier taken over entirely by writers.I figured out why as I was trying to upload this - deviantART refused to render the preview file.I wonder what happened? I'm su...><br /><div><img src="http://th08.deviantart.net/fs71/300W/i/2010/050/e/2/Taken_Over_by_Writers_by_PokeSensei.jpg" alt="thumbnail" /></div> ]]></description> | |
<media:description type="html"><![CDATA[ As we all know, deviantART was earlier taken over entirely by writers.I figured out why as I was trying to upload this - deviantART refused to render the preview file.I wonder what happened? I'm su... ]]></media:description> | |
</item> | |
<item> | |
<title>paint.exe Font</title> | |
<link>http://PokeSensei.deviantart.com/art/paint-exe-Font-143297829</link> | |
<guid isPermaLink="true">http://PokeSensei.deviantart.com/art/paint-exe-Font-143297829</guid> | |
<pubDate>Wed, 11 Nov 2009 14:54:45 PST</pubDate> | |
<media:title type="plain">paint.exe Font</media:title> | |
<media:keywords></media:keywords> | |
<media:rating>nonadult</media:rating> | |
<media:category label="Sans Serif">resources/fonts/sansserif</media:category> | |
<media:credit role="author" scheme="urn:ebu">PokeSensei</media:credit> | |
<media:credit role="author" scheme="urn:ebu">http://a.deviantart.net/avatars/p/o/pokesensei.png?2</media:credit> | |
<media:copyright url="http://pokesensei.deviantart.com">Copyright 2009-2010 ~PokeSensei</media:copyright> | |
<media:thumbnail url="http://th08.deviantart.net/fs51/300W/i/2009/315/f/b/paint_exe_Font_by_PokeSensei.png" height="57" width="300"/> | |
<media:thumbnail url="http://th08.deviantart.net/fs51/150/i/2009/315/f/b/paint_exe_Font_by_PokeSensei.png" height="29" width="150"/> | |
<media:content url="http://fc08.deviantart.net/fs51/i/2009/315/f/b/paint_exe_Font_by_PokeSensei.png" height="152" width="800" medium="image"/> | |
<media:content url="http://www.deviantart.com/download/143297829/" medium="document"/> | |
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license> | |
<description><![CDATA[ This is my newest font "paint.exe"Hope you enjoy.- Navarr(For Commercial licensing, please contact [email protected] )><br /><div><img src="http://th08.deviantart.net/fs51/300W/i/2009/315/f/b/paint_exe_Font_by_PokeSensei.png" alt="thumbnail" /></div> ]]></description> | |
<media:description type="html"><![CDATA[ This is my newest font "paint.exe"Hope you enjoy.- Navarr(For Commercial licensing, please contact [email protected] ) ]]></media:description> | |
</item> | |
<item> | |
<title>Watakushi no Namae</title> | |
<link>http://PokeSensei.deviantart.com/art/Watakushi-no-Namae-140091583</link> | |
<guid isPermaLink="true">http://PokeSensei.deviantart.com/art/Watakushi-no-Namae-140091583</guid> | |
<pubDate>Mon, 12 Oct 2009 16:20:09 PDT</pubDate> | |
<media:title type="plain">Watakushi no Namae</media:title> | |
<media:keywords></media:keywords> | |
<media:rating>nonadult</media:rating> | |
<media:category label="Typography">digitalart/text/typography</media:category> | |
<media:credit role="author" scheme="urn:ebu">PokeSensei</media:credit> | |
<media:credit role="author" scheme="urn:ebu">http://a.deviantart.net/avatars/p/o/pokesensei.png?2</media:credit> | |
<media:copyright url="http://pokesensei.deviantart.com">Copyright 2009-2010 ~PokeSensei</media:copyright> | |
<media:thumbnail url="http://th01.deviantart.net/fs50/300W/i/2009/285/1/4/Watakushi_no_Namae_by_PokeSensei.jpg" height="272" width="300"/> | |
<media:thumbnail url="http://th01.deviantart.net/fs50/150/i/2009/285/1/4/Watakushi_no_Namae_by_PokeSensei.jpg" height="136" width="150"/> | |
<media:content url="http://fc01.deviantart.net/fs50/i/2009/285/1/4/Watakushi_no_Namae_by_PokeSensei.jpg" height="1610" width="1773" medium="image"/> | |
<media:content url="http://www.deviantart.com/download/140091583/" medium="document"/> | |
<creativeCommons:license>http://creativecommons.org/licenses/by-nc/3.0/</creativeCommons:license> | |
<description><![CDATA[ This is my "Japanese Name."The last name is on the right, the first name on the left. Names are read top to bottom, right to left. So it would be read "Barnier Navarr."I'm using a *literal kanji*...><br /><div><img src="http://th01.deviantart.net/fs50/300W/i/2009/285/1/4/Watakushi_no_Namae_by_PokeSensei.jpg" alt="thumbnail" /></div> ]]></description> | |
<media:description type="html"><![CDATA[ This is my "Japanese Name."The last name is on the right, the first name on the left. Names are read top to bottom, right to left. So it would be read "Barnier Navarr."I'm using a *literal kanji*... ]]></media:description> | |
</item> | |
<item> | |
<title>Anime Symbol Font</title> | |
<link>http://PokeSensei.deviantart.com/art/Anime-Symbol-Font-135473048</link> | |
<guid isPermaLink="true">http://PokeSensei.deviantart.com/art/Anime-Symbol-Font-135473048</guid> | |
<pubDate>Mon, 31 Aug 2009 18:09:07 PDT</pubDate> | |
<media:title type="plain">Anime Symbol Font</media:title> | |
<media:keywords></media:keywords> | |
<media:rating>nonadult</media:rating> | |
<media:category label="Miscellaneous">resources/fonts/misc</media:category> | |
<media:credit role="author" scheme="urn:ebu">PokeSensei</media:credit> | |
<media:credit role="author" scheme="urn:ebu">http://a.deviantart.net/avatars/p/o/pokesensei.png?2</media:credit> | |
<media:copyright url="http://pokesensei.deviantart.com">Copyright 2009-2010 ~PokeSensei</media:copyright> | |
<media:thumbnail url="http://th01.deviantart.net/fs27/300W/i/2009/243/8/6/Anime_Symbol_Font_by_PokeSensei.png" height="194" width="300"/> | |
<media:thumbnail url="http://th01.deviantart.net/fs27/150/i/2009/243/8/6/Anime_Symbol_Font_by_PokeSensei.png" height="97" width="150"/> | |
<media:content url="http://fc01.deviantart.net/fs27/i/2009/243/8/6/Anime_Symbol_Font_by_PokeSensei.png" height="525" width="810" medium="image"/> | |
<media:content url="http://www.deviantart.com/download/135473048/" medium="document"/> | |
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/3.0/</creativeCommons:license> | |
<description><![CDATA[ Its definitely not the best, but I DID try really hard. Its like wingdings, but for anime lovers!Included are the cross (upside down and rightside up).Pentacle, Upside-down Pentagram, Star of Davi...><br /><div><img src="http://th01.deviantart.net/fs27/300W/i/2009/243/8/6/Anime_Symbol_Font_by_PokeSensei.png" alt="thumbnail" /></div> ]]></description> | |
<media:description type="html"><![CDATA[ Its definitely not the best, but I DID try really hard. Its like wingdings, but for anime lovers!Included are the cross (upside down and rightside up).Pentacle, Upside-down Pentagram, Star of Davi... ]]></media:description> | |
</item> | |
<item> | |
<title>fatalrain no deviantID</title> | |
<link>http://PokeSensei.deviantart.com/art/fatalrain-no-deviantID-135464466</link> | |
<guid isPermaLink="true">http://PokeSensei.deviantart.com/art/fatalrain-no-deviantID-135464466</guid> | |
<pubDate>Mon, 31 Aug 2009 16:43:58 PDT</pubDate> | |
<media:title type="plain">fatalrain no deviantID</media:title> | |
<media:keywords></media:keywords> | |
<media:rating>nonadult</media:rating> | |
<media:category label="deviantID">darelated/deviantid</media:category> | |
<media:credit role="author" scheme="urn:ebu">PokeSensei</media:credit> | |
<media:credit role="author" scheme="urn:ebu">http://a.deviantart.net/avatars/p/o/pokesensei.png?2</media:credit> | |
<media:copyright url="http://pokesensei.deviantart.com">Copyright 2009-2010 ~PokeSensei</media:copyright> | |
<media:thumbnail url="http://th08.deviantart.net/fs46/300W/f/2009/243/f/b/fatalrain_no_deviantID_by_PokeSensei.jpg" height="225" width="300"/> | |
<media:thumbnail url="http://th08.deviantart.net/fs46/150/f/2009/243/f/b/fatalrain_no_deviantID_by_PokeSensei.jpg" height="113" width="150"/> | |
<media:content url="http://fc08.deviantart.net/fs46/f/2009/243/f/b/fatalrain_no_deviantID_by_PokeSensei.jpg" height="453" width="604" medium="image"/> | |
<media:content url="http://www.deviantart.com/download/135464466/" medium="document"/> | |
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license> | |
<description><![CDATA[ I must be wayyy too bored if I took the time to make ~fatalrain a deviantID.Don't care if ya use it or not, i just felt like makin it~><br /><div><img src="http://th08.deviantart.net/fs46/300W/f/2009/243/f/b/fatalrain_no_deviantID_by_PokeSensei.jpg" alt="thumbnail" /></div> ]]></description> | |
<media:description type="html"><![CDATA[ I must be wayyy too bored if I took the time to make ~fatalrain a deviantID.Don't care if ya use it or not, i just felt like makin it~ ]]></media:description> | |
</item> | |
</channel> | |
</rss> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 6 of SimpleXML.php was the solution.. for some reason I had to do $media->thumbnail[1]->attributes() to get the information I so desired. What the heck, man.