A command-line tool for scraping various sites and uploading images to Derpibooru.
Derpibooru topic: https://derpibooru.org/forums/meta/topics/my-derpibooru-uploader
- Windows: PowerShell (or Windows Terminal, recommended)
- MacOS/Linux: Terminal
git clone https://github.com/mdashlw/booru-uploader-ts.git
cd booru-uploader-ts
npm install
cd booru-uploader-ts
git pull
npm install
Rename .env.example
to .env
and fill in the required values.
DERPIBOORU_API_KEY
- find here: https://derpibooru.org/registrations/edit
- Register an app here: https://www.deviantart.com/developers/apps
- Fill in
DEVIANTART_CLIENT_ID
andDEVIANTART_CLIENT_SECRET
- Edit your app to add
http://localhost:1341/callback
to "OAuth2 Redirect URI Whitelist" - Do
npm run deviantart-oauth
- Export your DeviantArt cookies using the instructions below
Note: Deviations will be exported to your Sta.sh storage, which may eventually run out of space. Delete them regularly.
- Create an empty blog on your account (the last one in the list will be used for exporting images)
- Export your Tumblr cookies using the instructions below
- On https://www.furaffinity.net/controls/settings/, set Time Zone to Greenwich Mean Time and disable "Apply Daylight saving time correction"
- Export your Fur Affinity cookies using the instructions below
- Login to the site
- Install Get cookies.txt LOCALLY browser extension: Chrome / Firefox
- Click on the extension icon in the browser toolbar while on the page
- Set "Export Format" to JSON. Click "Export" or "Export As" (do not rename the file)
- Move the file to the
booru-uploader-ts
folder
DISCORD_CDN_BOT_TOKEN
- used for refreshing Discord CDN links. make a bot here and copy the BOT TOKEN: https://discord.com/developers/applicationsINKBUNNY_USERNAME
andINKBUNNY_PASSWORD
- Inkbunny username and password. optional but some submissions are member-onlyWEASYL_API_KEY
- get here: https://www.weasyl.com/control/apikeysNEWGROUNDS_COOKIE
- login to https://www.newgrounds.com/ and copy the cookie
npm start
npm start 3506534
to copy sources from the specified Derpibooru image
When uploading, the tool automatically generates a description from the specified sources.
Do npm run description
or npm run description 3506534
to generate it manually and copy to clipboard.
Boosty (December 20, 2023 at 10:07:19 PM UTC)
> **π€π**
> Looks like it's that time again where the sketch looks better than the finale π
>
> Have you put up the Christmas tree yet?π
>
> [#zipp storm](https://boosty.to/itssim?postsTagsIds=578559) [#izzy moonbow](https://boosty.to/itssim?postsTagsIds=1626400)
Twitter (December 22, 2023 at 3:47:00 PM UTC)
> π€π
> Have you decorated your Christmas tree yet?
> \#ZippStorm \#mlpgen5 \#mlpg5 \#IzzyMoonbow
DeviantArt (January 8, 2024 at 10:51:01 AM UTC)
> **Zippmas tree**
>
>
> [#izzymoonbow](https://www.deviantart.com/tag/izzymoonbow) [#zippstorm](https://www.deviantart.com/tag/zippstorm)