/dajare-extractor

Dajare extractor for Ruby.

Primary LanguageRubyMIT LicenseMIT

Spider

MIT License

Spider of this ダジャレステーション.

Description

This spider fetchs the following items.

  • dajare text
  • dajare score
  • dajare author

Requirements

  • macOS
  • Ruby 2.7
  • SQLite3

Usage

Start Crawling

$ bundle exec ruby spider.rb

Setup Gmail

$ bundle exec rake setup:gmail
Gmail Address:your.address@gmail.com     # Enter your gmail address
Application Password:**********  # Enter your application password

Database

Migratiton

$ bundle exec rake db:migrate

Clear DB

$ bundle exec rake db:clear

Clear Table

$ bundle exec rake db:clear_<tablename>

Clear Log

$ bundle exec rake log:clear

Installation

  1. Clone this repo
$ git clone <this repo>
$ cd <this repo>
  1. Build gems
$ bundle install

References

ダジャレ(だじゃれ)ステーション

Author