Posts a random picture from an imgur album
- Setup environment variables as described below
- Optionally
virtualenv .
and activate the new virtual environment (differs by platform) pip install -r requirements.txt
- Whenever you want to post, run
python src/peon.py
- Optionally setup a scheduled task to run the above commmand on a set interval
These need to be configured in the environment before running the bot
To get these, you need to:
- Create or login with your imgur account at api.imgur.com
- Register your application (should be available at api.imgur.com)
- When choosing Authorization Type for your imgur app, you can choose Anonymouse usage
- imgur_album_id - the album on imgur to pull from. found in the album's url
- imgur_client_id - your client ID for Imgur's API
- imgur_client_secret - your client secret for Imgur's API (not actually needed)
To get these, you need to:
- create a Twitter account for your bot
- Login to dev.twitter.com as that user
- Create an application
Then you can find this information under the application's info
- twitter_consumer_key - your twitter consumer key
- twitter_consumer_secret - your twitter consumer secret
- twitter_access_token_key - your twitter access token key
- twitter_access_token_secret - your twitter access token secret
Also included in this repo is a short set of scripts to download pictures from Nintendo's Miiverse
- Login to miiverse
- Open console there
- paste into console the code from
localscripts/saveMiiverse.js
- Take the resulting array from that and paste that into
localscripts/saveurls.py
asurls
- Run
localscripts/saveurls.py
, which will save all the pictures locally - Upload these to an imgur album
- Use
localscripts/deleteMiiverse.js
as needed to clear up space of your now-backed up miiverse - ??
- Profit!