An http request module sending back a Cheerio object.
$ npm i --save cheerio-req
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());
}
// =>
// Pi Day, Raspberry Pi and Command Line
// How I ported Memory Blocks to modern web
// How to convert JSON to Markdown using json2md
});
An http request module sending back a Cheerio object.
- Object|String
opts
: The request url or an object passed totinyrequest
. - Function
cb
: The callback function.
- Request The
tinyrequest
object.
Have an idea? Found a bug? See how to contribute.
If you are using this library in one of your projects, add it in this list. β¨
scrape-it
βA Node.js scraper for humans.