mirror of
https://github.com/thewesker/iron_ebooks.git
synced 2025-12-20 04:11:12 -05:00
22f56a9ff744641994d060fdbfdd477e9437504b
Iron_ebooks
A simple and hackish ruby script for pseudorandomly posting to a _ebooks account tweets derived from a regular twitter account
Setup
- Signup for iron.io
- Create a project at iron.io for doing ebooks tweets
- Save the iron.json file locally to this directory
- Signup for a Twitter account you want to use for ebooking things
- Sign into dev.twitter.com with the same credentials
- Create an application for your _ebooks account (generate the credentials)
- Create a file named twitter_init.rb in this directory with the OAuth credentials and the source account you want to use for seeding the markov process
- Upload to iron.io with
iron_worker upload ebook - Run it with
iron_worker queue ebooka few times - You can schedule it now to run regularly using the scheduler. I'd suggest once every 53 minutes or so.
Debugging
You can force it to bypass the random running by passing up a payload to queue
iron_worker queue ebook -p '{"force": true}'
You can also make it run without tweeting by setting the tweet param to false
iron_worker queue ebook -p '{"force": true, "tweet": false}'
Description
Languages
Ruby
100%