jeroenherczeg / hyena
Laravel 5 的网页爬虫
0.0.2
2016-08-26 18:42 UTC
Requires
- php: ~5.6|~7.0
- ext-imagick: *
- guzzlehttp/guzzle: ^6.2
- illuminate/support: ^5.2
- symfony/css-selector: ^3.1
- symfony/dom-crawler: ^3.1
Requires (Dev)
- phpunit/phpunit: ~4.0||~5.0
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
This package is auto-updated.
Last update: 2024-09-06 14:07:04 UTC
README
这里应该放置您的描述。尽量限制在一到两段话,并提及您支持的 PSRs 以避免与用户和贡献者产生混淆。
安装
通过 Composer
$ composer require jeroenherczeg/hyena
然后,您必须安装服务提供者
// config/app.php 'providers' => [ ... Jeroenherczeg\Hyena\HyenaServiceProvider::class, ];
并添加门面
// config/app.php 'aliases' => [ ... Jeroenherczeg\Hyena\Facades\Hyena::class, ];
用法
$result = Hyena::visit('https://github.com')->extract(['name', 'images']); $result = Hyena::visit('https://github.com')->extract(['name', 'images'], [ 'min_image_width' => 50, // optional, minimal width of picture in px 'min_image_height' => 50, // optional, minimal height of picture in px 'min_image_filesize' => 16000, // optional, minimal filesize of picture in bytes 'limit_images' => 10 // optional, max count of images to return ]);
[ 'name' => 'Github', 'images' => [ 'https://avatars1.githubusercontent.com/u/759412?v=3&s=40', 'https://assets-cdn.github.com/images/spinners/octocat-spinner-128.gif', 'https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif' ] ]
变更日志
有关最近更改的更多信息,请参阅CHANGELOG。
测试
$ composer test
贡献
请参阅CONTRIBUTING和CONDUCT以获取详细信息。
安全
如果您发现任何与安全相关的问题,请通过电子邮件jeroen@herczeg.be联系,而不是使用问题跟踪器。
致谢
许可
MIT 许可证 (MIT)。有关更多信息,请参阅许可文件。