Web scraper with a jQuery like wrapper.
Usage ##
Uses Cheerio by default instead of jQuery for better performance.
``
javascript
import dollar from 'dollar'const $ = await dollar('https://www.wikipedia.org/')
console.log($('h1').text())
`
$3
`
javascript
const $ = await dollar('https://www.wikipedia.org/', {jQuery: true})
console.log($('h1').text())
`
$3
`
javascript
const $ = await dollar({html: 'hello
'})
console.log($('h1').text())
`
$3
`
javascript
{
jQuery: false,
url: undefined, // or string
html: undefined, // or string or Promise returning string
}
``
License ##
Apache 2.0
Changelog ##
$3
- Update deps, Cheerio v1, jsdom v26
$3
- Update docs
$3
- Remove get from API
- Dollar call signature changed to take options also as 2nd parameter
$3
- Update docs
$3
- Parameter names changed
- html parameter can be a Promise or a string
$3
- Use ES6
- Remove Q and use native promises
- Remove lodash and use native functions
- Remove request and use fetch
- Remove encoding lib
- Upgrade rest i.e. jQuery, Cheerio and jsdom
$3
- Upgrade jQuery to 3.2.1 and use it via npm
$3
- Upgrade npm deps
$3
- Upgrade npm deps
$3
- Encoding support
$3
- Upgrade jQuery from 2 to 3
- Upgrade npm deps
$3
- something