A node.js module for the PageMunch web crawler API
JavaScript
Latest commit d29f056 Dec 31, 2016 @tommoor tommoor committed on GitHub Add badge
Permalink
Failed to load latest commit information.
lib
.gitignore
README.md
package.json

README.md

npm 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

$ npm 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.

Callbacks / ES5

const PageMunch = require('pagemunch');

const pm = new PageMunch(process.env.PAGEMUNCH_API_KEY);
pm.extract('http://www.youtube.com/watch?v=9bZkp7q19f0', function(err, data) {
  if (err) throw err;

  console.log(data);
});

Promises / ES6

import PageMunch from 'pagemunch';

const pm = new PageMunch(process.env.PAGEMUNCH_API_KEY);
const data = await pm.extract('http://www.youtube.com/watch?v=9bZkp7q19f0');
console.log(data);

More Details

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

License

Copyright PageMunch 2017.