Why download your Photobucket images?
Earlier this year, Photobucket changed their Terms and Conditions fairly silently, to prevent linking of images on their service on 3rd party websites for free. Instead, users who had posted Photobucket links to their images on another website saw this ugly prompt to upgrade their account.
Photobucket had already done this for users when they reached a very high bandwidth usage, but previously an upgrade was only $25. Now the ability to hotlink your images from Photobucket comes with a steep $400/year price tag. Many users called it extortion and blackmail. Especially because users soon discovered the interface to download their images to then post them from their own website was broken. And, the option to upload an image in a support ticket with Photobucket was broken too. This left many users in a panic. There simply was no way to get their site working again.
Luckily, if you’re familiar with Terminal and Bash, there’s a pretty easy way to get your images back. Philip Jewell posted helpful steps on Github as well as images to help guide the way.
Get the Image Links
First, log into your Photobucket account and select the album of images you need (this process goes one album at a time). Choose an image or two in the album and a “Select all” box appears. Choose “Select all” and wait for your count of images in the bottom to update before continuing. Now navigate to the next album you’d like to download and repeat the process. Do this for all albums you need to download. Through this process your total images selected should continue to grow. When you’re finished, click “Link” at the bottom of your screen.
Photobucket will open a window containing all the direct links for your images in it. Clicking will copy the links to your clipboard.
From here, create a folder on your desktop called “photobucket.” Then open a text editor on your computer and paste your image links into it. Save it as a TXT file (e.g. my_photobucket_files.txt) to your “photobucket” folder on your desktop.
Now you are ready to download the files.
Please note: the following instructions are for users on Mac OS X. If you are using a Windows machine, users have provided solutions in the comments of Philip Jewell’s post on Github: https://gist.github.com/philipjewell/a9e1eae2d999a2529a08c15b06deb13d
Download your images
Now the fun part: downloading your images from Photobucket. In your Terminal application, paste the following commands:
cd ~/Desktop/photobucket
cut -d\/ -f 7 photobucket_files.txt | grep "\." | while read file; do grep "${file}$" photobucket_files.txt; done | while read file; do curl -O --referer "http://s.photobucket.com/" ${file}; done
cut -d\/ -f 7 photobucket_files.txt | grep -v "\." | sort -u | while read dir; do mkdir ${dir}; cd ${dir}; grep "/${dir}/" ../photobucket_files.txt | while read file; do curl -O --referer "http://s.photobucket.com/" ${file}; done; cd -; done
What is this command doing? It’s looping through all your images to download them, and using “http://s.photobucket.com/” as a referer. This tricks Photobucket into thinking the requests are coming from itself. This allows you to easily download your images you need without dealing with their buggy and ad-ridden interface, or dealing with their upgrade messaging.
Some users have also suggested using sed to take out IMG tags as well:
sed -i 's/\[IMG]//g; s/\[\/IMG]//g' photobucket_files.txt
That’s all there is to it! Hopefully this guide has helped you download your images so they can be uploaded directly to your site, store, forum, or wherever they were needed. Have any comments, questions, or notes to add? Let me know in the comments, or Contact Me.
Stephen says
Still worked great as of 05/2019 – Sure I have copies but so much easier to pull them al down just in case before more limits. Thanks!
Stacey L Toth says
Do you have a “For Dummies” version for those of us not familiar with Terminal & Bash? You lost me at text editor. Can’t you just change the file name in Windows? Please help. I have 2300 images on Photobucket and only have until June 1st. Who would’ve imagined they wouldn’t have a “download all” button. 😞
Daryl says
This was a huge help as I was able to save for my mom a ton of imagines and on so that she had uploaded to Photobucket over the years. Thanks!
Ceej says
5/20/19 – after selecting files and clicking on ‘Link’, I get a window with a box labeled Direct which has a single url in it. I cannot ‘click’ on that box. I can highlight the url. But no matter what I do, after clicking Done, I either get nothing in the clipboard, or I get a single url.
Using: Windows 7, latest Firefox and Chrome.
Ceej says
5/20/19 – well, after posting my last/only comment, I went back to my firefox browser and, what the heck, tried it again. worked! some issue with flash i ibelieve. in any case, i will now try to use the scripts.
Angie Mackey says
Hi! Thank you for writing this! I’m getting an error that “cut” is not an internal or external command. Do you know what I could be doing wrong?
C:\Users\mackeya\Desktop\PHOTOBUCKET>cut -d\/ -f 7 myphotobucketfiles.txt | grep “\.” | while read file; do grep “${file}$” myphotobucketfiles.txt; done | while read file; do curl -O –referer “http://s.photobucket.com/” ${file}; done
‘cut’ is not recognized as an internal or external command,
operable program or batch file.
C:\Users\mackeya\Desktop\PHOTOBUCKET>cut -d\/ -f 7 myphotobucketfiles.txt | grep -v “\.” | sort -u | while read dir; do mkdir ${dir}; cd ${dir}; grep “/${dir}/” ../myphotobucketfiles.txt | while read file; do curl -O –referer “http://s.photobucket.com/” ${file}; done; cd -; done
Thank you for any help! PB has over 2,300 of my photos of my kids from birth forward!
Ty says
God bless you for this
Brian says
Brilliant! Thank you so much! I was so worried my pictures would be held hostage forever. Photo bucket should be ashamed. I will NEVER use a photo website again.
Joey says
THANK YOU SO MUCH for publishing this. I’m NOT a very well-versed Mac user & eventually after realizing I needed to drag & drop the .txt file into the Photobucket folder itself (after too many frustrating errors in Terminal)… this process has worked absolutely brilliantly! Now I don’t feel as irritated paying one month of premium service after essentially being strong-armed into it or else I’d lose 10+ years of photos/videos. You are a Saint. Period. 🙂
Jade Tiffany says
Hellooo I tried this hoping it would still work. but i keep getting the responses
‘cut’ is not recognized as an internal or external command, operable program or batch file
What am I doing wrong X__X ?!?!