Web scraper with a jQuery like wrapper.
Uses Cheerio by default instead of jQuery for better performance.
import dollar from 'dollar'
const $ = await dollar('https://www.wikipedia.org/')
console.log($('h1').text())
const $ = await dollar('https://www.wikipedia.org/', {jQuery: true})
console.log($('h1').text())
const $ = await dollar({html: '<html><h1>hello</h1></html>'})
console.log($('h1').text())
{
jQuery: false,
url: undefined, // or string
html: undefined, // or string or Promise returning string
}
Apache 2.0
- Update docs
- Remove get from API
- Dollar call signature changed to take options also as 2nd parameter
- Update docs
- Parameter names changed
- html parameter can be a Promise or a string
- 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
- Upgrade jQuery to 3.2.1 and use it via npm
- Upgrade npm deps
- Upgrade npm deps
- Encoding support
- Upgrade jQuery from 2 to 3
- Upgrade npm deps
- something