Categories
PHP

Hacking SlideShare.net using PHP

Duh! you really believed that tricky title? come on!

But hey, wait. Here’s something I’ve found for you!

I am a big fan of slideshare becoz of their fantastic presentation sharing service and also the display. but it also hurts me when I can’t download some of these awesome slides available there for my offline reading. So I just spent some time today analyzing the HTTP requests made by the player available in slideshare using LiveHTTPHeader extension and found a way to download any presentation you want! There are many slides available in slideshare where you see that “Download not available” – But as long you have some knowledge on web-scrapping, that doesn’t matter at all.

Look at the following PHP code which gives you a list of URLs of the slides from any slideshow in slideshare.net – whether the presentation is available to download or not! for example the presentation on “Ajax and PHP” by John Coggeshall is not available to download. The url is of that presentation is http://www.slideshare.net/coogle/ajax-and-php


<?php
$slideshowUrl="http://www.slideshare.net/coogle/ajax-and-php";
$slideshowPageContent = file_get_contents($slideshowUrl);
$pattern = "~doc=([\w-]+)~";
preg_match($pattern,$slideshowPageContent,$matches);
$xmlurl = "http://s3.amazonaws.com/slideshare/{$matches[1]}.xml";


$sxml = simplexml_load_file($xmlurl);

foreach ($sxml->Slide as $slide)
echo $slide['Src']."<br />";
?>

The output will be something like this

https://s3.amazonaws.com:443/slideshare/ajax-and-php-1194421981517706-1-slide-1.swf
https://s3.amazonaws.com:443/slideshare/ajax-and-php-1194421981517706-1-slide-2.swf
https://s3.amazonaws.com:443/slideshare/ajax-and-php-1194421981517706-1-slide-3.swf
https://s3.amazonaws.com:443/slideshare/ajax-and-php-1194421981517706-1-slide-4.swf
https://s3.amazonaws.com:443/slideshare/ajax-and-php-1194421981517706-1-slide-5.swf
https://s3.amazonaws.com:443/slideshare/ajax-and-php-1194421981517706-1-slide-6.swf
https://s3.amazonaws.com:443/slideshare/ajax-and-php-1194421981517706-1-slide-7.swf
..........
https://s3.amazonaws.com:443/slideshare/ajax-and-php-1194421981517706-1-slide-40.swf

I am sure you are going to love me! 😀

50 replies on “Hacking SlideShare.net using PHP”

I usually just make the slide fullscreen and use a printscreen capture program that makes PNGs for me just by pressing a button. Most generate unique names for the files also. Then just throw them in a folder.

Super cool, but i still beginner in programming.

I found this software to download from slideshare after searching from a freeware site, it’s located on slidesharedownload.com
Use it and love it, just wanna pass this info for you.

hey, thank you

i don’t realy now php

can same one create firefox plugin on it

i realy same what am doing

sory, i realy sory for rude request

Hi
I was created application for genreating report on pdf format.. It working Cool. on second time but it is not working first time…….. Why

Regards

this “hack” is cool, but the presentation I want to download is a “private” presentation and the script doesn’t work…. this presentation is on display on an e-learning website (test study stuff) I’ll just use the screen capture and compile everything later. thanks…

Nice. Just want to add that the easier way to download these .swf files is:
1> Use IE, open the slides in full screen mode and go through all the slides.
2> The .swf files will be downloaded under the folder Temporary Internet Files (Document and Settings/user name/Local Settings/Temporary Internet Files)

hi, using firebug i can get the swf slides (if it’s a ppt or keynote presentation), but i can’t locate the header for PDF. all i get is the doc.swf that slideshare calls to display the PDF document, but I can’t find the links to download.

Can anyone advice how to do it? or what i should look out for on firebug?

thank you!

Do you have a spam problem on this website; I also am a
blogger, and I was curious about your situation;
many of us have created some nice practices and we are
looking to exchange techniques with other folks, please shoot me an e-mail
if interested.

Hi, I do believe this is an excellent site. I stumbledupon it 😉 I am going to return yet again
since i have saved as a favorite it. Money and freedom is the greatest way to change, may you be rich and
continue to help other people.

Great!
Thanks for your opinions on the review Hacking SlideShare.
net using PHP « The Storyteller.
They can be seriously helpful. I appreciated checking out
your posting.

Leave a Reply

Your email address will not be published. Required fields are marked *