node package manager

dollar

Web scraper with a jQuery like wrapper

Web scraper with a jQuery like wrapper.

var dollar = require('dollar')
dollar
  .get('http://reaktor.fi/')
  .then(function($) {
    console.log($('h1').text())
  })
var dollar = require('dollar')
dollar
  .get({url: 'http://reaktor.fi/', encoding: 'ISO-8859-1'})
  .then(function($) {
    console.log($('h1').text())
  })

Output encoding can be set with "encodingTo" parameter.

var dollar = require('dollar')
dollar
  .get({url: 'http://reaktor.fi/', fullJQuery: false})
  .then(function($) {
    console.log($('h1').text())
  })

Uses cheerio instead of jQuery for better performance.

{
  fullJQuery: true,
  url: undefined,
  html: undefined,
  htmlPromise: undefined,
  encoding: 'UTF-8',
  encodingTo: 'UTF-8'
}
  • Encoding support
  • Upgrade jQuery from 2 to 3
  • Upgrade npm deps
  • something

Apache 2.0