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
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install gutenberg_book_finder
GutenbergBookFinder.random_id GutenbergBookFinder.book_text(id) GutenbergBookFinder.book_info(id)
- Fork it ( https://github.com/[my-github-username]/gutenberg_book_finder/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request