WebsiteInformation

Gem Version Code Climate MIT License Build Status

Scrape website information that title, meta, page capture, description, ogp and so on.

Installation

Add this line to your application's Gemfile:

gem 'website_information'

And then execute:

$ bundle

Or install it yourself as:

$ gem install website_information

Please install web driver if you want to use site capture.

# For example. In the case of MacOS
$ wget http://chromedriver.storage.googleapis.com/2.32/chromedriver_mac64.zip
$ unzip chromedriver_mac64.zip
$ sudo chmod u+x chromedriver
$ mv chromedriver /usr/local/bin

Usage

scraped_params = WebsiteInformation::Website.new('scraping_url(ex. https://www.google.com)').scraped_params

# ex) get website title
scraped_params.title

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/miraoto/website_information. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the WebsiteInformation project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.