Otacrawler
Otacrawler is web comic crawler such as the Akihabara otaku.
Installation
Add this line to your application's Gemfile:
gem 'otacrawler'
And then execute:
$ bundle
Or install it yourself as:
$ gem install crawler
Usage
Setting database:
development:
adapter: mysql2
host: localhost
username: root
database: otacrawler
production:
adapter: mysql2
host: xxxx
username: xxxx
database: otacrawler
Run robot:
require 'otacrawler'
Otacrawler::Robot.new.run
ENV
DATABASE_SETTING_PATH - Database setting file path. That file formatted YAML.
OTACRAWLER_ENV - Setting environment. This doesn't overrides the value of the environment variable RAILS_ENV.
Development
If you want to add crawling sites, you add that site to Otacrawler::Sites
. At that time, you should inherit the site from Otacrawler::Sites::Base
.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/yuta-muramoto/otacrawler.
License
The gem is available as open source under the terms of the MIT License.