http://danbooru-v7sh-grabber.googlecode.com/svn/branches/release-0.10/grab.sh
Requirements
POSIX compatible OS with sh, cat, sed, grep, od, wc, mv, ln, rm, [ (test with symlink is fine too), printf, touch, sleep, cut, wget or fetch and sha1 or sha1sum utilities or built-ins.
First run
$ sh grab.sh -d -dm samedir nonexisting_tag
Four paths will be asken:
- temp directory path
- storage directory path
- storage directory for samedir download type path
- configuration file path
You may either input full paths or just press enter for default values showed in [] braces.
If everything ended fine, "Begining downloading for tag 'nonexisting_tag'.\nError: there is no tag 'nonexisting_tag'." will be prompted.
You also may save your danbooru account information to configuration file, executing
$ sh grab.sh -w -u your_login -p your_password
Quick guide in examples
Find all tags, starting from 'cir':
$ sh grab.sh "cir*"
Download all images tagged with 'letty_whiterock':
$ sh grab.sh -d letty_whiterock
You can also use tags intersections and group them into lists for batch processing.
Download all images, containing tags 'cirno' OR 'horo':
$ sh grab.sh -d ~cirno ~horo
Download all images, containing tags 'loli' AND 'horo', then download all with tag 'iwakura_lain', then all with tag 'maid' and with width more then 1000 pixels:
$ sh grab.sh -d loli horo, iwakura_lain, maid width:>1000
More about grabber options:
$ sh grab.sh --help
Updated