PHP code example of zodream / spider

1. Go to this page and download the library: Download zodream/spider library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zodream / spider example snippets



[
    'url' => '开始网址',
    'filter' => '正则限制',
]


[
    'spider.proxy' => 'http://zodream.localhost/proxy?format=json'
];


$spider = new Spider($configs | $uri);