dave_the_cave
Member
Recently someone sent me a link to their photo album hosted on photobucket. As there were over a hundred photos I wrote a script to do the job.
Here is a link to the script photobucket_download.py
It can run in two modes depending on whether you give a password
or
A real example off ukcaving
The last '/' in the album url is needed (because I add ?start=all to the url to view all the photos in the album in one web page)
It downloads 100s of images into highpeak sub-directory of the current directory
This takes ages and is not a good idea. I also made the mistake of trying it on the old ruminators photo album but that has even more photos which are even more diverse. A smaller example album would be useful
It uses various python modules (mechanize, urllib, ..) which must be installed for the script to be used.
The password version is slower as it downloads the web page several times because it needs to submit the loginform first.
Once it has a thumbnail view of the photos it scrapes the urls of the thumbnails from the web page - the actual high resolution urls are easily determined from the thumbnail url.
Sadly photobuckets password protection for an album is little protection as the site does not support https: and so the password is
sent unencrypted!?! As are all the photos that are downloaded!?! Beware!
Here is a link to the script photobucket_download.py
It can run in two modes depending on whether you give a password
Code:
python photobucket_dowmload.py albumurl password directoryname
Code:
python photobucket_download.py albumurl directoryname
A real example off ukcaving
Code:
python python_src/photobucket_download.py http://i245.photobucket.com/albums/gg44/highpeak/ highpeak
It downloads 100s of images into highpeak sub-directory of the current directory
This takes ages and is not a good idea. I also made the mistake of trying it on the old ruminators photo album but that has even more photos which are even more diverse. A smaller example album would be useful
It uses various python modules (mechanize, urllib, ..) which must be installed for the script to be used.
The password version is slower as it downloads the web page several times because it needs to submit the loginform first.
Once it has a thumbnail view of the photos it scrapes the urls of the thumbnails from the web page - the actual high resolution urls are easily determined from the thumbnail url.
Sadly photobuckets password protection for an album is little protection as the site does not support https: and so the password is
sent unencrypted!?! As are all the photos that are downloaded!?! Beware!