scraper extension for superagent
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
example-hn.js
package.json
superscraper.js

README.md

superscraper

installation

npm install superscraper

introduction

superscraper extends superagent prototype with a .scrape() method, preloading htmlparser2 and cheerio-soupselect for easy and fast scraping.

usage

var superscraper = require('superscraper')

superscraper
  .get('http://some.url/foo')
  .scrape(res, $) {
    // $ is ready to accept our selectors
    $('.title').forEach(function (node) {
      // do something
    })
  })

licence

MIT/X11