A Ruby gem for the PageMunch web crawler API
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
pagemunch.gemspec

README.md

Gem Version

PageMunch - Link Unfurling

Introduction

PageMunch is a simple API backed by an intelligent web crawler that lets you extract rich previews, entities and images from any url. Whether you want to grab the best title, description and image for a page, prices, authorship, enable video embeds or more.

Installation

Add this line to your application's Gemfile:

gem 'pagemunch'

And then execute:

$ bundle

Or install it yourself as:

$ gem install pagemunch

Usage

We recommend storing your API key in an environment variable, for security and to enable using different keys in your staging, development and production environments.

Pagemunch.key = ENV.fetch('PAGEMUNCH_API_KEY')
response = Pagemunch.extract 'http://www.youtube.com/watch?v=9bZkp7q19f0'
puts response.body.inspect

More Details

For more information, libraries and documentation check out the PageMunch Documentation