This simple bot runs as a cloudflare worker and, using OAuth2, gets all accounts following you that have both no posts and aren't followed by you.
Made in two days without a proper TS library or any real knowledge of OAuth at the time. Use at your own risk.
Subject to being updated when I get around to making a proper typed tumblr OAuth2 library since I'm pretty sure that the official JS lib only supports OAuth1.0A which is a PAIN to work with.
Untested instructions, but I wanted to at least give the gist for anyone who would rather self-host this
- Register a tumblr app here, set the OAuth2 redirect URLs to
http://localhost:8787/auth
- Get a Cloudflare account if you don't already have one
- Install Wrangler (used to deploy the code)
- Clone the repository using git
- Make a new file named
.dev.vars
and DON'T SHARE IT - In
.dev.vars
, enter the consumer ID and secret you got from registering an app in step 1 with the form
TUMBLR_CONSUMER_KEY=[consumeridhere]
TUMBLR_CONSUMER_SECRET=[secrethere]
- Run
wrangler login
to login with your cloudflare account, it'll open a browser window - Run
wrangler dev
to host the app locally - Go to http://localhost:8787/auth
- Use like you would normally