lfphp/craw
Composer 安装命令:
composer require lfphp/craw
包简介
A lite craw for PHP. make log easier to use.
README 文档
README
The current library is based on PHP CURL extension and tested in PHP7.2 or above environment. In view of ethical standards, please do not use this library to illegally obtain network resources without permission.
Install
- PHP version is greater than or equal to 7.2
- Extensions must be installed: mb_string, curl, json, dom, tidy, iconv
Please use Composer to install:
composer require lfphp/craw
Usage
1. CURL method to obtain content
<?php use function LFPhp\Craw\craw_curl_get_cache; //Introduce class library to automatically load files include 'autoload.php'; //Get content using CURL method $result = crawl_curl_get_cache('https://www.baidu.com'); //Print results echo "Execution result:", var_dump($result), PHP_EOL; echo "Get content:", $result;
//Document to be improved
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-23