# Otacrawler [![Code Climate](https://codeclimate.com/github/yuta-muramoto/otacrawler/badges/gpa.svg)](https://codeclimate.com/github/yuta-muramoto/otacrawler) [![CircleCI](https://circleci.com/gh/yuta-muramoto/otacrawler/tree/test.svg?style=svg)](https://circleci.com/gh/yuta-muramoto/otacrawler/tree/test) Otacrawler is web comic crawler such as the Akihabara otaku. ## Installation Add this line to your application's Gemfile: ```ruby gem 'otacrawler' ``` And then execute: $ bundle Or install it yourself as: $ gem install crawler ## Usage Setting database: ```YAML # database.yml development: adapter: mysql2 host: localhost username: root database: otacrawler production: adapter: mysql2 host: xxxx username: xxxx database: otacrawler ``` Run robot: ```ruby 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](http://opensource.org/licenses/MIT).