No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-16 21:25:39 +01:00
.gitignore initial commit 2026-11-16 17:17:29 +01:00
LICENSE.md add license 2026-11-16 17:20:24 +01:00
README.md add dependency info 2026-11-16 17:33:21 +01:00
uploader.py remove empty tags from tag list 2026-11-16 21:25:39 +01:00

oxibooru-uploader

little script i pawed together to automagically upload files into oxibooru

usage: uploader.py [-h] [--tags TAGS] [--tags-from-file] [--source SOURCE] [--source-from-file] [--safety SAFETY] [--token TOKEN] [--host HOST] file

positional arguments:
  file                file to upload

options:
  -h, --help          show this help message and exit
  --tags TAGS         list of tags, space or comma seperated
  --tags-from-file    load tags from 'Keywords' field in the file's metadata
  --source SOURCE     source url of the image
  --source-from-file  load source from 'Source' field in the file's metadata
  --safety SAFETY     safety rating of the image, e.g. safe, sketchy, unsafe, etc.
  --token TOKEN       Auth token, can alternatively passed as OXI_TOKEN environment variable
  --host HOST         Oxibooru host, can alternatively passed as OXI_HOST environment variable

Requirements

  • python-requests needs to be available to send the API request.
  • if the -from-file options are used for tags and source, exiftool needs to be available on your PATH