Giter VIP home page Giter VIP logo

nightmirrormoon's Introduction

NightMirrorMoon

Make mirrors of

  • Deviantart to imgur
  • Tumblr to imgur
  • GIFs from Deviantart and imgur to Gfycat

on Reddit.

How to use

Copy or rename nmm.conf.example to nmm.conf and fill in the values.

Make a reddit account and put the credentials into the reddit_account and 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 info.)

Make an imgur account and register the bot. Put the App-ID you get from there into imgur_appid.

Make a tumblr account and register the bot. Put the API key into tumblr_api_key.

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 useragent key.

There's also the option to only mirror content that is tagged as mature, to allow people without DA accounts to see it. Set mature_only to 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 at most max_retries times, with a five second delay between each try.

Limitations

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.

nightmirrormoon's People

Contributors

meditonsin avatar millennialdan avatar nano23823 avatar

Watchers

James Cloos avatar  avatar

Forkers

nano23823

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.