1.0.1 • Published 8 years ago

node-parallel-http v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

Node-Parallel-HTTP

Node-Parallel-HTTP is a Javascript for make lot of different request simultaneously. It can use HTTP, HTTPS. It works with socks5 proxy for, exemple, use TOR NETWORK. You can use it for retrieve lot of data on internet. Or for realize some bruteforce.

exemple node parallel http

enter image description here

#It easy to uses ! You can easly customise which website you want to visit and how to process these pages !

#Process

##Getting started

var parallelHttp = require('node-parallel-http');

function getInfos(numeroCrawler,cb) {
   
   var sites = [{        
         url: 'www.this-page-intentionally-left-blank.org',        
           path: '/',        
          isValid: function(codeSource) {       
               return (codeSource.indexOf("This Page Intentionally Left Blank") >=0);      
           }     
    }];

    var infos = {
        sites:sites,
        pageIndex: 0,
        numeroCrawler : numeroCrawler
    };

    cb(null, infos);
}

function processPage(page, info, cb) {
    console.log(page); //display page
    cb(null, info);
}
parallelHttp(50,getInfos,processPage,false)
    .then(function(result){
        console.log("finish")
    })

##Installation

You will can install node-parallel-http with npm:

npm install node-parallel-http --save

Now you can start to have parallel request .

###Gulp Tasks

  • gulp: runs all the tests and builds the minified and unminified bundles into /dist.
  • gulp build: builds the bundle.
  • gulp build: builds the bundle.

###Demo

####Simple exemple

This is a simple exemple

####Simple bruteForce

This is a simple bruteForce

####Simple use of TorNetwork

This is a simple use of TorNework

##Contribute

Node-Parallel-HTTP is an Open Source project that started in Lyon, French. Anybody in the world is welcome to contribute to the development of the project.

If you want to contribute feel free to send PR's, just make sure to run the default gulp task before submiting it. This way you'll run all the test specs and build the web distribution files.

<3