!!!!! Precautions when using with Rails !!!!!

Write this line your Gemfile.

gem "final_redirect_url", :git => "[email protected]:yubele/final_redirect_url"

WebStat

Fetch the web pages and stat.

Requirements

  • MeCab 0.996
  • add runtime dependency
    • "bundler", "~> 2.0"
    • "nokogiri", "~> 1.10"
    • "mechanize", "~> 2.7"
    • "ruby-readability", "~> 0.7"
    • "final_redirect_url", "~> 0.1.0"
    • "natto", "~> 1.1.2"
  • add development dependency
    • "rake", "~> 10.0"
    • "rspec", "~> 3.0"
  • "rake", "~> 10.0"
  • "rspec", "~> 3.0"

Install mecab

$ sudo apt install mecab-ipadic-utf8 libmecab

Installation

Add this line to your application's Gemfile:

gem 'web_stat'

And then execute:

$ bundle

Or install it yourself as:

$ gem install web_stat

Usage

you can customize web_stat config.

And then execute:

$ rake web_stat:install

spec

$ docker/start -d $ docker/exec ENV=development bundle exec rspec

Test a file

$ docker/start -d $ docker/exec ENV=development bundle exec rspec spec/web_stat/fetch_spec.rb