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'
})()

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    4
  • 0.0.1
    1

Package Sidebar

Install

npm i head-scraper

Weekly Downloads

5

Version

0.0.2

License

MIT

Last publish

Collaborators

  • jongleberry