Sankaku Complex Forums » Meta

[closed]

danbooru upload script (*nix)

  1. Well, I know this is only going to apply to a small amount of people, but I made a danbooru upload script for *nix systems. The FF extension is okay, but I didn't like browsing my hard drive with a browser. So if you have Linux or a Mac, this script will upload a batch of similar pictures for you to the Channel with one command. This might work with Windows/Cygwin tho.

    http://pastie.org/431771
    and save as ~/bin/danbooru-upload and set chmod +x

    To start, create the config file at ~/.danbooru/danbooru-upload and populate it with
    [sc]
    baseurl=http://chan.sankakucomplex.com

    Login with
    danbooru-upload -l sc

    and upload like this
    danbooru-upload -n sc -t "touhou tatara_kogasa" -r questionable -f "$HOME/Pictures/kogasa/*jpg $HOME/Pictures/kogasa/*png"
    which basically does "upload to the channel all my kogasa jpgs and pngs with the tags 'touhou' and 'tatara_kogasa' and rate them questionable."

    Or you can use within another script and source a doujin to a pool.
    for page in $(seq -w 03 23); do
    danbooru-upload -n sc -p XX -t "beako doujinshi" -f "hxxp://torot.net/main/comic/backbeard/napo/bea_n00$page.gif"
    done

    check help and options and example commands with
    danbooru-upload -h

    Despite the number of options, the script is kinda limited, but I think it is good enough to push out similar pictures. But it's not meant for truly random image sets. Of course, I made it with how I would like to upload pictures, but if anyone wants their way added in, I'll try to implement it. Edits, GUIs welcome too.

    Posted 6 years ago #
  2. I actually already have a Bash upload script which works with Windows and Linux, and which I have been distributing to uploaders, although it is based solely on curl.

    Message me on the Channel if you or anyone else wants the pack.

    There are also some more advanced scripts I have completed, though they are perhaps a little more involved.

    Posted 6 years ago #
  3. Artefact said:

    Message me on the Channel if you or anyone else wants the pack.

    channel is down atm and i sure could use that script for uploading more collections to the channel.

    Posted 6 years ago #
  4. Avatar Image

    Kip

    I occasionally confuse one 'channel' for the other, but in this instance I believe he means the IRC.

    Posted 6 years ago #
  5. Kip said:
    I occasionally confuse one 'channel' for the other, but in this instance I believe he means the IRC.

    oooooo, that makes sense...kip is so smart

    Posted 6 years ago #
  6. I capitalised it, so no. Will distribute something as soon as the array is up on the Channel.

    Posted 6 years ago #
  7. Looking forward to seeing the code. I'm particularly interested in how random image sets and thus tagging are handled.

    This script is centered around curl as well, and I implemented all of the danbooru "create" api, so theoretically this will work on the other danboorus.

    Posted 6 years ago #
  8. I can't send you a private message Artefact. I would like to ask for those scripts...

    I've installed my own danbooru locally and I want to import images from danbooru, here, and etc.

    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.