Asynchronous reblog a list of Tumblr posts with RQ. It uses Redis to record the tumblrs
add a post about kubrick to the reblog list of the tumblr ilovekubrick.tumblr.com, and create a worker for it :
QueueReblog.add_queue("ilovekubrick", "http://kubricksfilms.tumblr.com/post/80674960029/space-station-v-from-2001-a-space-odyssey")
run a worker to reblog the posts in the queue :
rqworker reblog:ilovekubrick
display infos about the posts :
InfosReblog.infos("ilovekubrick")
You need to setup oauth
Please follow the instructions in pytumblr (you can use interactive-console.py)
When you have the oauth tokens, record them for your tumblr with
PostsRedis.init_oauth("ilovekubrick", consumer_key, consumer_secret, oauth_token, oauth_secret)
(you can config different oauths for different tumblrs)
Please note the worker sleeps a random time (see settings.py) before begin reblogging.
Please note by default the redis database is '2' (see settings.py)
The posts and oauth are recorded in redis by the tumblr name, so you can manage different tumblrs in the same time (with a worker by tumblr).
In redis, post urls are moving from toreblog to ongoing (worker), and then to reblogged or failed
It would be cool to integrate it with https://github.com/ui/rq-scheduler to run a periodic worker
MIT, have fun