Your Own @Horse_ebooks

Relevant XKCD
  • If you’re running OS X, open Terminal (found in ~/Applications/Utilities)
  • If you’re running Ubuntu, hit Ctrl-Alt+T
  • If you’re not on Ubuntu I’d suggest figuring out how to open your Terminal before following this tutorial
  • On OS X, type `git` and hit enter. You should be prompted to install the command-line tools now. If you’ve already installed them your terminal will give you a brief explanation of git and its usage.
  • On Linux you should already have git installed.
git clone git@github.com:mispy/ebooks_example nulljosh_ebooks
cd nulljosh_ebooks/
sudo gem install bundler
bundle install
sudo npm install -g twauth
heroku login
twauth — key=v8xVBZlXBp2AJoWI3VjDjzDkC — secret=Wpoom4N6tpTgfywzCt6y83gvZubbYoT0vL0V8FXzhyXA74218D
https://push.tapbots.com/tweetbot/3/callback?oauth_token=sdgf876f98d7hlhfds9&oauth_verifier=4Wg5gzPhxcWrtfgee6Dgg8GwPgahhCRD
  • On line 22 assign `self.consumer_key` to `v8xVBZlXBp2AJoWI3VjDjzDkC`
  • On line 23 assign `self.consumer_secret` to `Wpoom4N6tpTgfywzCt6y83gvZubbYoT0vL0V8FXzhyXA74218D`
  • Delete line 24 unless you have a reason to keep it.
    — On line 131 change “abby_ebooks” to your twitter bot username (username_ebooks, etc)
  • One line 132 assign `bot.access_token` to
    the first oauth key you got from twauth (the public one)
  • On line 133 assign `bot.access_token_secret` to the second key you got (your oauth private).
  • On line 135 assign `bot.original` to the username you want to base your ebooks off of (probably your main twitter username)
export username=your_original_twitter_username
ebooks archive $username corpus/$username.json
ebooks consume corpus/$username.json
foreman start
git init
git add -A
git commit -m “Initial Commit”
heroku create
heroku ps:scale worker=1
git push heroku master

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store