Download the PHP package w3zone/crawler without Composer
On this page you can find all versions of the php package w3zone/crawler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package crawler
Crawler
Write Less, Do More.
Installation
Requirements
- node.js > 4.x
- libcurl
- php-curl
- node.js request module
Usage
Available Services
- phpCurl
use w3zone\Crawler\Services\phpCurl;
- nodejsRequest
use w3zone\Crawler\Services\nodejsRequest;
- cliCurl
use w3zone\Crawler\Services\cliCurl;
Available Methods
-
Get
Crawler::get(mixed $arguments);
set the request to GET method,
accepts parameter holding the requested URL. -
Post
Crawler::post(mixed $arguments);
set the request to POST method,
accepts an array of options -
Json
Crawler::json(void)
an easy way to create a json request. -
XML
Crawler::xml(void)
an easy way to create a xml request. -
Referer
Crawler::referer(string $referer)
set the current request referer. -
Headers
Crawler::headers(array $headers)
set the request additional headers,
note that this function will overwrite json && xml functions. -
DumpHeaders
Crawler::dumpHeaders(void)
include the response headers in the object response. - Proxy
Crawler::proxy(mixed $proxy)
set the request proxy IP and proxy type,
note proxy method accepts an array of proxy IP and proxy Type or an IP string
if you've passed an IP as a string the default type will be HTTP.
-
Cookies
Crawler::cookies(string $file, string $mode)
set your proxy type, the first argument is a cookie string,
the seccond argument is the cookie mode ,
available modes :
-- w : write only mode -- r : read only mode -- w+r : read and write -
Initialize
Crawler::initialize(array $arguments)
initialize or re-initialize your request
note that , this method will overwrite the other options - Run
Crawler::run(void)
fire the request.
Examples:-
Quick example to login into Github :-