GutenbergBookFinder

This gem lets you get some info on books in the Gutenberg Project.

USE THIS SPARINGLY. This is simple and dumb, for demo purposes, and will get your IP banned on the Project Gutenberg website if you play with it too much.

The right way of interfacing with the Project Gutenberg is to use their index file, here: http://www.gutenberg.org/feeds/catalog.rdf.bz2 -- and of course there is a gem for that: http://rubygems.org/gems/gutenberg_rdf

Installation

Add this line to your application's Gemfile:

gem 'gutenberg_book_finder'

And then execute:

$ bundle

Or install it yourself as:

$ gem install gutenberg_book_finder

Usage

GutenbergBookFinder.random_id GutenbergBookFinder.book_text(id) GutenbergBookFinder.book_info(id)

Contributing

  1. Fork it ( https://github.com/[my-github-username]/gutenberg_book_finder/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request