Sha256: 4338dff7ce05bb2801797ca06d52f6416c25c29cd2db003c4439829960cab2ec

Contents?: true

Size: 1.5 KB

Versions: 2

Compression:

Stored size: 1.5 KB

Contents

# 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) <img src="img/IMG_6837.JPG" align="right">


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).

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
otacrawler-0.1.3 README.md
otacrawler-0.1.2 README.md