1.0.0 • Published 4 years ago
consortium-bypassed v1.0.0
consortium-bypass
Will bypass "Please wait for 5 second..." page on ONLY "www.consortium.co.uk", because I don't know any other sites that uses this antibot(NOT TALKING ABOUT CLOUDFLARE).
Install
npm install consortium-bypass
Usage
consortium-bypass uses request-promise
by default since v3. You can find the migration guide here.
var request = require("consortium-bypass");
request("https://www.consortium.co.uk/")
.then(console.log)
.catch(console.error);
or for POST
action:
var options = {
uri: "https://website.com/",
formData: { field1: "value", field2: 2 }
};
request(options)
.then(console.log)
.catch(console.error);
A generic request can be made with request(options)
. The options object should follow request's options. Not everything is supported however, for example http methods other than GET and POST. If you wanted to request an image in binary data you could use the encoding option:
var options = {
method: "GET",
url: "http://website.com/"
};
request(options).then(console.log);
Dependencies
Bugs?
Make an issue. :)
App Info
Author
Eric Zhang
Version
1.0.0
License
This project is licensed under the MIT License - see the LICENSE file for details
1.0.0
4 years ago