scrapper

1.0.1 • Public • Published

scrapper

NodeJS HTML page scrapper with jQuery-like selectors on server side

Installation

npm install scrapper

Usage

 
scrapper.get('http://yandex.ru/yandsearch', function($){
    console.log($('body').text())
}, {text: 'NodeJS!'}, {'User-Agent': 'Googlebot'});
 
scrapper.post('http://google.com', function($){
    console.log($('body').text())
}, {q: 'NodeJS!'}, {'User-Agent': 'Yandex Bot'});
 
scrapper.html('<ul><li>NodeJS</li></ul>', function($){
    console.log($('li').text())
});
 

Readme

Keywords

none

Package Sidebar

Install

npm i scrapper

Weekly Downloads

4

Version

1.0.1

License

none

Last publish

Collaborators

  • konteck