Make mirrors of
- Deviantart to imgur
- Tumblr to imgur
- GIFs from Deviantart and imgur to Gfycat
How to use
Copy or rename
nmm.conf and fill in the values.
Make a reddit account and put the credentials into the
reddit_password keys. The account might need some karma in
the subreddit it's supposed to work in and ideally a verified email
address, to get around reddit's rate limiting. (See here for more
Make an imgur account and register the
bot. Put the App-ID you get from there into
Make a tumblr account and register
the bot. Put the API key into
Not strictly necessary, but probably for the best, is to change
the user agent string of the
REST::Client instance that does
calls to reddit to something of your own. See here for more
info. This can be set in the
There's also the option to only mirror content that is tagged as mature,
to allow people without DA accounts to see it. Set
1 for that.
When the bot encounters an error while creating a mirror or deleting an
unused one (because it encountered an error elsewhere), it will retry
max_retries times, with a five second delay between each try.
Direct DA link (i.e. non fav.me and links with an anchor in the URL) will be scraped for the highest resolution embedded image (img.fullview or img.dev-content-full) to bypass the shortcoming of the oEmbed API.
The oEmbed API Deviantart uses doesn't always return the highest available resolution of images, which is only a minor problem, since imgur compresses anything over a certain size anyway.
It also doesn't return GIFs for some reason, only still images (PNG or whatever), which means GIFs won't be mirrored correctly.
GIFs from tumblr are currently not mirrored to Gfycat.