Collamine
This is a ruby gem for CollaMine client, which communicates with CollaMine servers to download content from their SmartCache if it exists. It also lets you crawl a web site using SpiderCrawl and share the results with the community via CollaMine servers.
Installation
Add this line to your application's Gemfile:
gem 'collamine'
And then execute:
$ bundle
Or install it yourself as:
$ gem install collamine
Usage
To get started,
require 'collamine'
Collamine.start('http://forums.hardwarezone.com.sg/hwm-magazine-publication-38/',
:pattern => Regexp.new('^http:\/\/forums\.hardwarezone\.com\.sg\/hwm-magazine-publication-38\/?(.*\.html)?$'))
TODO
- Update CollaMine server path
- Update MongoDB server path/ Remove MongoDB module
Contributing
- Fork it ( https://github.com/belsonheng/collamine/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