Project

widgetify

0.0
No commit activity in last 3 years
No release in over 3 years
An alternative to embed.ly, it allows an HTML page to be parsed for various meta HTML and open graph details
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

= 1.5.4
 Project Readme

Widgetify

Description

Widgetify provides the functionality for dealing with parsing from a url. It can parse the Open Graph Protocol, Oembed URL, Twitter Protocol and the HTML image tags. For Open Graph you can read more about the specification at http://ogp.me and for Oembed URL read more about the specification at http://oembed.com/ .

Requirements

*   Ruby(tested with 1.9.3)
*   Nokogiri
*   Rspec(only if you want to run the tests)

Installation

 gem install widgetify

 Installing from the github, include this line in your Gemfile.

 gem 'widgetify', :git => "git@github.com:funnyfarmsf/widgetify.git"

Usage

require 'widgetify'

For Open Graph Parsing

  widgetify = Widgetify::Base.new(your_url, {}, :parse_open_graph)

  widgetify.parse_result

For Oembed URL Parsing

  widgetify = Widgetify::Base.new(url, {:format => 'json', :maxwidth => '150', :maxheight => '250', :provider => 'provider_name'}, :parse_oembed)

  widgetify.parse_result

For Twitter Parsing

  widgetify = Widgetify::Base.new(url, {}, :parse_twitter)
  
  widgetify.parse_result

For Html Parsing

  widgetify = Widgetify::Base.new(your_url, {}, :parse_html)

  widgetify.parse_result

You can parse more than one type


  widgetify = Widgetify::Base.new(url, {:format => 'json', :maxwidth => '150', :maxheight => '250', :provider => 'provider_name'}, :parse_oembed, :parse_open_graph)

  widgetify.parse_result
Provider Name List

  • youtube
  • flickr
  • viddler
  • qik
  • revision3
  • hulu
  • vimeo
  • collegehumour
  • oohembed
  • polleverywhere
  • opera
  • embed
  • ifixit
  • smugmug
  • slideshare
  • wordpress
  • quickmeme
  • twitter