Wayne Pan

tech | js | ui | ajax | life | mobile
Filed under:

Last night I was trying to grab all the photos off my friend’s fotki.com account. I couldn’t find any link to download a whole album easily. I fired up wget with some simple options and that failed. The reason? I was trying to grab the original images (basically the link ‘Get Original Uploaded Photo’ on this page for example).

If you view the source you’ll see that the link is actually generated by javascript:

document.write('<br><a class=text3 href="');
document.write('http://images111.fotki.com/v750/fileaZ5N/f145a/4/41967/110006/AestheticBalllet.jpg');
document.write('" mce_href="');
document.write('http://images111.fotki.com/v750/fileaZ5N/f145a/4/41967/110006/AestheticBalllet.jpg');
document.write('">Get Original Uploaded Photo</a>');

After realizing this, I wrote a quick php script to grab all the images. Because of this, I’m never using fotki. I know why they make it difficult for you to do such a thing (bandwidth expenses, etc) but in todays world of mediafire.coms and unlimited email storage there’s little reason to do it. Other than to piss me off and force me to resort to coding.

Posted by Wayne on Tuesday, November 27th, 2007


You can follow any responses to this entry through the magic of "RSS 2.0" and leave a trackback from your own site.

2 Responses to “Be Open! A Web 2.0 Ideology Worth Following”

Post A Comment

mt