{"id":11,"date":"2010-07-30T21:30:00","date_gmt":"2010-07-30T21:30:00","guid":{"rendered":"http:\/\/www.lochan.org\/keith\/blogs\/gurunoia\/?p=11"},"modified":"2012-10-15T21:40:52","modified_gmt":"2012-10-15T21:40:52","slug":"archiving-rockyou-slideshows","status":"publish","type":"post","link":"https:\/\/gurunoia.lochan.org\/blog\/2010\/07\/archiving-rockyou-slideshows\/","title":{"rendered":"Archiving RockYou slideshows"},"content":{"rendered":"<p>Aidan&#8217;s amazing primary 2 teacher keeps a class blog, which is full of lovely slideshows of pictures of the class and what they&#8217;re up to (mostly taken by the kids themselves &#8211; the &#8220;media team&#8221;!).  It&#8217;s fabulous, but I&#8217;m really worried about how long it will stay up once the year is over.  I decided to do some digging, and work out how to archive the slideshows.<\/p>\n<p>Of course, they&#8217;re in Flash &#8211; courtesy of <a href=\"http:\/\/www.rockyou.com\/\">RockYou<\/a>.  And saving a Flash to your computer (even if you can do it) doesn&#8217;t get you very far &#8211; it downloads all the images from the internet as it goes.<\/p>\n<p>Thanks to the fab (and free in both senses) <a href=\"http:\/\/www.owasp.org\/index.php\/Category%3aOWASP_WebScarab_Project#Download\">WebScarab<\/a> (like <a href=\"http:\/\/www.fiddler2.com\/fiddler2\/\">Fiddler<\/a>, but it works on Linux too), I was easily able to watch what happens when a slideshow is played on a browser with an empty cache.  Here&#8217;s what I found:<\/p>\n<p>The blog source contains an &lt;embed&gt; link to a URL like this:<\/p>\n<div style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">http:\/\/apps.rockyou.com\/rockyou.swf?instanceid=&lt;NNmmmDDDD&gt;&amp;ver=102906<\/div>\n<p>This Flash app loads some more apps and a few beacons and things, but the most important thing is this:<\/p>\n<div style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">http:\/\/data.rockyou.com:80\/xml\/&lt;NN&gt;\/&lt;mmm&gt;\/&lt;NNmmmDDDD&gt;.xml<\/div>\n<p>This is a nice little XML file with a <span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">\/rockmyspace\/gallery<\/span> element that has basic style, colour, and transition information as attributes, and as content has a list of <span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">slide<\/span> elements.&nbsp; Each of these has an <span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">image<\/span> element &#8211; the URL to the image &#8211; and a <span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">text<\/span> element &#8211; the caption.&nbsp; Here&#8217;s an example:<\/p>\n<div style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">&lt;slide&gt;<\/div>\n<div style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">&nbsp; &lt;image path=&#8221;http:\/\/img&lt;YYY&gt;.rockyou.com\/&lt;NNm&gt;\/&lt;NNmmmD&gt;\/&lt;NNmmmDDDD&gt;\/&lt;NNmmmDDDD&gt;_&lt;xxxxxxxxxxxxxxxxxx&gt;.jpg&#8221; \/&gt;<\/div>\n<div style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">&nbsp; &lt;text text=&#8221;Isn&#8217;t this a cool photo?&#8221; \/&gt;<\/div>\n<div style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">&lt;\/slide&gt;<\/div>\n<p>And that&#8217;s all you need!<\/p>\n<p>To summarise:<\/p>\n<ul>\n<li>Determine the <span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">instanceid<\/span> of the slideshow.<\/li>\n<li>Download the corresponding XML file.<\/li>\n<li>Read the XML file, looking for <span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">\/rockmyspace\/gallery\/slide\/image<\/span> elements.&nbsp; (May not always be <span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">gallery<\/span> &#8211; I&#8217;ve seen other values here).<\/li>\n<li>Download the images.<\/li>\n<li>Read the captions from the corresponding <span style=\"font-family: &quot;Courier New&quot;,Courier,monospace;\">text<\/span> elements.<\/li>\n<\/ul>\n<p>Obviously you have to work out how to display them yourself, and how to recreate the transitions.&nbsp; But this way you can get at and archive the content that&#8217;s been shared by the slideshow author, so it can be enjoyed for years afterward.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aidan&#8217;s amazing primary 2 teacher keeps a class blog, which is full of lovely slideshows of pictures of the class and what they&#8217;re up to (mostly taken by the kids themselves &#8211; the &#8220;media team&#8221;!). It&#8217;s fabulous, but I&#8217;m really &hellip; <a href=\"https:\/\/gurunoia.lochan.org\/blog\/2010\/07\/archiving-rockyou-slideshows\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[17],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/gurunoia.lochan.org\/blog\/wp-json\/wp\/v2\/posts\/11"}],"collection":[{"href":"https:\/\/gurunoia.lochan.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gurunoia.lochan.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gurunoia.lochan.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gurunoia.lochan.org\/blog\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":1,"href":"https:\/\/gurunoia.lochan.org\/blog\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":39,"href":"https:\/\/gurunoia.lochan.org\/blog\/wp-json\/wp\/v2\/posts\/11\/revisions\/39"}],"wp:attachment":[{"href":"https:\/\/gurunoia.lochan.org\/blog\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gurunoia.lochan.org\/blog\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gurunoia.lochan.org\/blog\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}