No commit activity in last 3 years
No release in over 3 years
Simple gem for parsing meta information from websites. It scans all meta-tags by name, itemprop or property attributes.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
>= 0

Runtime

 Project Readme

MetaInformation

Gem Version

Simple gem for parsing meta information from websites. It scan all meta-tags by name or property attributes.

Instalation

Add this line to your application's Gemfile:

gem 'meta_information'

Then run bundle install Or install it yourself as:

gem install meta_information

Usage

require 'pp'
meta = MetaInformation.get_meta('https://www.awesome_site.com/awesome_page')
pp meta
###
#{:succes=>"true",
# :error=>"",
# :all_meta=>
#  [{:type=>"name",
#    :name=>"viewport",
#    :property=>nil,
#    :content=>"width=device-width, initial-scale=1.0"},
#   {:type=>"name", :name=>"description", :property=>nil, :content=>"some description"},
#   {:type=>"name", :name=>"title", :property=>nil, :content=>"i am title"},
#   {:type=>"name", :name=>"og:title", :property=>nil, :content=>"some content"},
#   {:type=>"name", :name=>"og:description", :property=>nil, :content=>"some description"},
#   {:type=>"name",
#    :name=>"og:image",
#    :property=>nil,
#    :content=> "https://www.awesome_site.com/assets/awesome_picture.jpg"}]},
#   {:type=>"property", :name=>nil, :property=>"fb:app_id", :content=>"1234567890"},
###

License

MIT License.