Photobucket album downloader v0.7

pb-ripper

ATTENTION: It has come to my attention that the script does not seem to work anymore, after PB has changed the way they show mobile versions of the website. I do not have time anymore to work on this project for now, however I will see what can be done sooner or later :)

The time has come to update this little script. Since Photobucket switched from Beta design to what they use now, this script has stopped working. I am sorry for the delay, I would have posted this sooner but I too have a life ;)
Anyway, the new Photobucket design is ugly, I probably don’t need to tell you that, and they had been holding off the slideshow feature for quite some time. Recently it was implemented and I hoped my script would work without much modifications… but alas, they just had to redesign it all.
They used weird Javascript to load 12 images at a time, so needless to say it was not the way to go about doing this… I had to find another way.

After looking around I noticed that photobucket has a mobile version of the website which is accessible with a mobile user-agent. I don’t know if the design there has changed along with main website design, if not then silly me for not spotting this sooner :/ It means this script would of worked even after the update… but there is a catch with this.

Method I use now is pretty much the same as it was before, just now everything is loaded off a mobile version of the website. When you press the Slideshow button, all the information gets written to a source file and then get fed to a Flash player that shows a slideshow. Because this uses a flash player, a specific user-agent is required, one from a mobile that supports flash player… otherwise the website is smart enough to somehow tell if that phone can play flash :/

Well, even though I had found a method downloading images again, I cannot find a method downloading videos again… seems like the mobile version doesn’t load videos into the slideshow. But all the videos can be found in that image listing… and of course I could read the last page number, go through every page parsing HTML code to see if it contains a video and if it does then to read HTML code from the video page and finally download everything… but that is too much work for me right now and such method is very prone to error… maybe if someone could make it and send it to me, I’ll be more than happy to implement it into a script :)
So for now, no video downloading, sorry :(

To find the login form I used code suggested by Kyle, it worked great. Thanks Kyle! :)

Everything can be downloaded from the same location, here: PhotobucketGetter.zip

Thanks for reading, I’m waiting for feedback! :)

33 comments

  1. Anon says:

    Could you leave some instructions for the less savvy people such as myself?

  2. Kulverstukas says:

    To use it you must install Python and need to have some knowledge for using the command line (windows) or the terminal (linux). Typically after installing Python, you open up cmd and cd to the script location, then just run “python “.

  3. random says:

    Thanks for your hard work on this. If this still works, I Would love a step by step for casual users.

  4. Kulverstukas says:

    Yes it still works, it should anyway :P
    Using it is rather simple. You need python installed to launch it, you can get it from: http://www.python.org/getit/releases/2.7.5/

    When you will install Python, download the PhotobucketGetter.zip and extract it somewhere (let’s say on your desktop). Next open up Command prompt (Start -> run -> type in “cmd” and press OK).
    For the next step you’ll need to know how to navigate the command prompt. Usually you just need to type in “cd desktop/photobucketgetter”. In short you need to use the CD command to navigate to the PhotobucketGetter folder where it was extracted.

    When that is done, just type in “python photobucketgetter.py” (hint: use the TAB button :P) and you will get instructions on how to use it. If you are satisfied with the defaults, then append the link of a PB album to that command above and hit ENTER. It will start downloading…

  5. random says:

    Thanks for your guide. I got it working and it works great. I believe this is the only working method right now. Well done!

  6. Ven says:

    I keep getting this error after running the command with the url. Can anyone point out what I am doing wrong?

    python photobucketgetter.py -u/”Photobucket AlbumURL”
    [1] 4626
    HackinSouls:photobucketgetter venitaufa$
    * Creating “PhotobucketGetter” folder…
    *** Folder exists. Skipping…
    * Initiating connection to Photobucket…
    Terminating with message: can’t fetch relative reference: not viewing any document

    *edit never mind was typing it in wrong. lol thank you so much for this tool.

  7. Nooby McNooberson says:

    N00B reporting in…

    I have the same problem as Ven, but I don’t know what I am “typing in wrong”, as he didn’t elaborate on his solution.

    Here’s what I’m typing… and getting that same error message. Now with more blahs! :)

    photobucketgetter.py -u/”http://s1308.photobucket.com/user/blahblah/library/blahblah/blah”

    Also, what would I type into the IDLE Python GUI to run this?

    Thanks in advance!

  8. Kulverstukas says:

    With IDLE you can’t define arguments, you will have to use the command prompt.
    About the errors, why do you put that slash after -u ? try without it, and it would be cool to have an actual PB link because it might be something with PB that I didn’t consider… but most likely you are just typing it wrong :P

  9. Nooby McNooberson says:

    Thanks for getting back to me! Yep, it was the slash after the -u. So my entry should have been:

    photobucketgetter.py -u ”http://s1308.photobucket.com/user/blahblah/library/blahblah/blah”

    It works great! :D

    This is SO cool. I look forward to checking out the rest of your blog!

    -N00by.

  10. Kulverstukas says:

    You’re welcome :) I’m glad it helped you :)

  11. Theone says:

    Awesome tool! thanks! Hopefully it works for me. But just a question. What if the user i would like to download photos from did not put the pictures into albums but instead threw them all in the bucket? What should i put as the parameter after http://s1228.photobucket.com/user/someusername/library/ ?

  12. Kulverstukas says:

    Thanks :)
    That I’m not sure of, I never encountered a PB user without any albums, I thought the pics are put in some general album by default…?
    Well, it’d be very helpful to have the actual link you want to download so I can check it out and tell you.

  13. Jose says:

    This is my album’s url http://s84.photobucket.com/user/TeamClaret/library/Various%20Non-CSJG%20Pics/Porma%20Pics/Russian?sort=3&page=1

    Im getting this error

    * Creating “PhotobucketGetter” folder…
    *** Folder exists. Skipping…
    * Initiating connection to Photobucket…
    Terminating with message:

    pls help my album is 26 pages long

  14. Kulverstukas says:

    Hey Jose. The script seems to work for every album in your provided photobucket WHEN you remove “?sort=3&page=1” from the URL at the end.
    Try that, it should work :)

  15. Jose says:

    Im such a noob, please bear with me, Ive downloaded everything on this page, python and photobucketgetter

    i run the windows cmd.exe and work my way to the photobucketgetter folder wherein i type photobucketgetter.py -u http://s84.photobucket.com/user/TeamClaret/library/Various%20Non-CSJG%20Pics/Porma%20Pics/Russian

    Im still getting this error

    * Creating “PhotobucketGetter” folder…
    *** Folder exists. Skipping…
    * Initiating connection to Photobucket…
    Terminating with message .urlopen error [Errno 11004] getaddrinfo failed.

    ive even tried typing the url without the quotation marks, and i still get the same error.

    can you tell me step by step how i should do it?

  16. Kulverstukas says:

    Usually the quotation marks are needed if the URL contains spaces. However, your URL is working fine for me.
    I can only suggest you reboot your computer and try again, if it still doesn’t work, try on another computer, or even a different network. This is not a flaw in my project, there is something wrong with your settings or the network overall.
    Before you do any of that, make sure you installed “Python 2.7”.

  17. Jose says:

    thanks a reboot helped

  18. TickTock says:

    Hi Kulverstukas,

    I want to say a massive thank you for making this program. It has saved me the very tedious task of having to manually download over six thousand photos.

    I also wanted to post a warning for others that are having trouble downloading albums. If your URL contains a space you need to have an encoded space (%20), this isn’t a problem if you right click and copy your URLs, but if you manually type it and use “/New Album” instead of “/New%20Album” you will get an error.

  19. Drew says:

    I’m getting the following output when I run the script:

    File “photobucketgetter.py”, line 34
    print “* Found “str(len(nodeList))+” images…”
    ^
    SyntaxError: invalid syntax

    Any suggestions would be much appreciated. Thanks!

  20. Kulverstukas says:

    You are most likely using a python version different than 2.7. It has to be 2.7 or less.
    Python3 has a different syntax and so my script will not work with 3rd version.

  21. TickTock says:

    I’m now getting the following error:

    “*** Something went wrong grabbing picture data. Terminating…”

    When attempting download from any account :(.

  22. Kulverstukas says:

    Well, it looks like PhotoBucket finally did something to block the downloaders…
    Seems to me that they completely removed mobile versions of the website, that’s why my script breaks.
    Oh well, I’ll have to find another way around this, some day…
    It was fun while it lasted :P

  23. TickTock says:

    lol Damn. I was getting ready to download my second gallery. Over one thousand photos :(.

    The mobile version is still there, it has just changed. As you know going to “m.photobuct.com” takes you back to the main page, however, if you then go to a persons photobucket gallery it loads as the mobile version. The full site and the loaded mobile version both have the same front end URL.

    I noticed a couple of cookies from photobucket with the word mobile. After deleting the “pb_mobile” cookie and reloading the mobile gallery I was in, I get taken to the full version. Deleting all the other cookies doesn’t change the sites mode.

  24. Kulverstukas says:

    Yeah, the mobile version is there. However it’s completely changed to be like the main site.
    So either way my script is broken :( sadly I don’t know when I’ll get around to doing it again… sorry.
    I’ll do it someday though :D check back from time to time.

  25. TickTock says:

    I will, thank you. :)

  26. Hokidoki says:

    Hi, I tried using the script and i’m getting a “terminating with message: can’t fetch relative reference: not viewing any document”

    Do you happen to have a solution for this?

    the URL: s297.photobucket.com/user/bowen_shade/library

    Let me know if you have any thoughts..

  27. Kulverstukas says:

    First of all, the album you are trying to download is private and requires a password which you much provide.
    Second, the script does not work anymore, because PB was updated and so my old method stopped working.
    Read the blog post for more information.

  28. Sing says:

    Hi Kulverstukas,

    This Photobucket album downloader is made by myself.
    https://chrome.google.com/webstore/detail/photobucket-album-downloa/jmpbbfglflhdhbmimlcacoojpkeopelc

    Maybe you are interested on it :)

  29. Kulverstukas says:

    Pretty neat, Sing. Is it opensource? It would be interesting to read the code :)

  30. Moes says:

    @Sing
    No we don’t like to pay money for free photobucket downloader :-(!!!

  31. Kulverstukas says:

    @Moes: yeah that’s right, I didn’t notice there is a paid version of it :P heh well good for him, however my friend has rewritten the PB ripper, currently still in development but I’ll post about it soon because it basically works :)

  32. Johndoe says:

    Does the extension even work? Can you download private?

  33. Kulverstukas says:

    Only the author can tell you that, in the description it doesn’t mention such a possibility.
    You can try another solution made by Daxda which DOES allow downloading any kind of album, I wrote about the solution here: http://9v.lt/blog/photobucket-ripper-update/

Leave a Reply

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