0.0.12 • Published 5 years ago

jscrap v0.0.12

Weekly downloads
37
License
Copyleft
Repository
github
Last release
5 years ago

jscrap: A very easy-to-use and lighweight web scrapper

jscrap is a very fast and easy-to-use web scrapper for node.js

Installing

npm install jscrap

Having fun

var
    jscrap = require('jscrap');

jscrap.scrap("https://www.kernel.org/",function(err,$){
    console.log("Latest Linux Kernel: ",$("article #latest_link > a").text().trim());
    console.log("Released: ",$("article #releases tr:first-child td:nth-child(3)").text());
});

Supported selectors:

jscrap supports all the zcsel selectors and functions. Watch out zcsel documentation.

Options

The scrap() function supports these options:

debug : Activates the debug mode. Defaults to false.

followRedirects : Number of redirects to follow. Defaults to 3.

charsetEncoding : Document charset. Default to utf-8.

0.0.12

5 years ago

0.0.11

6 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago