EvilZone
Programming and Scripting => Scripting Languages => : daxda March 16, 2014, 01:59:54 PM
-
I've quickly hacked together a Photobucket image/album downloader, the idea for this project came from Kulverstukas. Throw him a cookie if you like this script.
The script extracts meta information about the album/image as well as the direct image link which is used to download the image which is the main functionality of the script, downloading images.
The usage of the script is as follows:
usage: pb_shovel.py [-h] [-r] [-o OUTPUT_DIRECTORY] [--omit-existing]
[-v VERBOSE] (-f FILE | -u URLS [URLS ...])
[--images-only | --videos-only] [-n USERNAME]
[-p PASSWORD]
optional arguments:
-h, --help show this help message and exit
-r, --recursive Recursively extracts images and videos from all passed
sources.
-o OUTPUT_DIRECTORY, --output-directory OUTPUT_DIRECTORY
The directory the extracted images getting saved in.
--omit-existing
-v VERBOSE, --verbose VERBOSE
-f FILE, --file FILE A file containing one or more Photobucket links which
you want to download.
-u URLS [URLS ...], --urls URLS [URLS ...]
One or more links which point to an album or image
which is hosted on Photobucket.
--images-only Do not download any other filetype besides image.
--videos-only Do not download any other filetype besides video.
Authentication:
-n USERNAME, --username USERNAME
The username or email which is used to authenticate
with Photobucket.
-p PASSWORD, --password PASSWORD
The matching password for your account.
This script might break and nuke your computer into eternity and turn the world upside down, non the less if you encounter bugs or odd behaviour please let me know in this thread.
The script can be obtained from my Github repo, just clone it and you're good to go:
git clone https://github.com/Daxda/pb_shovel.git
Feel free to annoy me with your questions if you have any.
-
Does it ignore existing files? what if I want to update a folder?
Should let the user select if he just wants videos OR image OR both.
Gonna try it out on some problematic albums and report :)
edit: it isn't "good to go" because you don't distribute the required libs with it.
-
Your installation concerns have been addressed in the latest pull request Kulverstucks. All a user has to do now is type the following
pip -r requirements
And all dependancies will be installed
I see you found the Ruby equivalent to Ruby bundler ;)
-
derp herp done some stuff
Why all the workarounds? why not just distribute the libs with the script itself, so a user only has to extract shit and run it... my god man.