Marvel Explorer

Uses my Ultron gem to wander from character to character through the Marvel Comics Data and drive the Twitter stream and the Website. You need to set some things up in ~/.marvel_explorer/config.yml:

twitter:
  consumer:
    key:    a_key
    secret: a_secret
  oauth:
    token:  a_token
    secret: a_nuvver_secret

marshal_file: /home/marvelexplorer/.marvel_explorer/last.character
jekyll_dir:   /home/marvelexplorer/marvelexplorer.github.io/

You also need some Ultron configuration in ~/.ultronrc:

PUBLIC_KEY: this_r_public_key
PRIVATE_KEY: this_one_r_private_key

Available commands are:

marvel_explorer update

Gets the next iteration of ‘Character A appeared in Comic with Character B’. Writes YAML into jekyll_dir for use by my Marvel Explorer Jekyll site

marvel_explorer tweet

Generates and publishes a Tweet (and see this for help with making Twitter bots)

marvel_explorer publish

Commits and pushes the Jekyll site to Github Pages

marvel_explorer ranking

Calculates most-featured-characters data, writes YAML for Jekyll site

marvel_explorer perform

All four of the above tasks

Back to top