cheerio-req
An http request module sending back a Cheerio object.
:cloud: Installation
$ npm i --save cheerio-req
:clipboard: Example
const cheerioReq = require("cheerio-req");
cheerioReq("http://ionicabizau.net", (err, $) => {
let $links = $("a.article-title");
for (let i = 0; i < $links.length; ++i) {
console.log($links.eq(i).text());
}
});
:memo: Documentation
cheerioReq(opts, cb)
An http request module sending back a Cheerio object.
You can change the request
function by overriding the request
field.
Params
- Object|String
opts
: The request url or an object passed to tinyrequest
. - Function
cb
: The callback function.
Return
:yum: How to contribute
Have an idea? Found a bug? See how to contribute.
:moneybag: Donations
Another way to support the development of my open-source modules is
to set up a recurring donation, via Patreon. :rocket:
PayPal donations are appreciated too! Each dollar helps.
Thanks! :heart:
:dizzy: Where is this library used?
If you are using this library in one of your projects, add it in this list. :sparkles:
:scroll: License
MIT © Ionică Bizău