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/ .
* Ruby(tested with 1.9.3)
* Nokogiri
* Rspec(only if you want to run the tests)
gem install widgetify
Installing from the github, include this line in your Gemfile.
gem 'widgetify', :git => "[email protected]:funnyfarmsf/widgetify.git"
require 'widgetify'
widgetify = Widgetify::Base.new(your_url, {}, :parse_open_graph)
widgetify.parse_result
widgetify = Widgetify::Base.new(url, {:format => 'json', :maxwidth => '150', :maxheight => '250', :provider => 'provider_name'}, :parse_oembed)
widgetify.parse_result
widgetify = Widgetify::Base.new(url, {}, :parse_twitter)
widgetify.parse_result
widgetify = Widgetify::Base.new(your_url, {}, :parse_html)
widgetify.parse_result
widgetify = Widgetify::Base.new(url, {:format => 'json', :maxwidth => '150', :maxheight => '250', :provider => 'provider_name'}, :parse_oembed, :parse_open_graph)
widgetify.parse_result
- youtube
- flickr
- viddler
- qik
- revision3
- hulu
- vimeo
- collegehumour
- oohembed
- polleverywhere
- opera
- embed
- ifixit
- smugmug
- slideshare
- wordpress
- quickmeme