head-scraper

0.0.2 • Public • Published

Head Scraper

Scrape the <head> of webpages for <title>, <meta>, and <link>s. Uses htmlparser2, cogent, head-parser and head-scraper.

Example

var co = require('co')
var scrape = require('head-scraper')
 
co(function* () {
  var data = yield* scrape('https://github.com')
  data.title === 'GitHub blah blah blah'
  data.description === 'GitHub is the best blah blah blah'
  data.og.title === 'GitHub blah blah blah facebook'
})()

/head-scraper/

    Package Sidebar

    Install

    npm i head-scraper

    Weekly Downloads

    1

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • jongleberry