paumel/scrapper
Composer 安装命令:
composer require paumel/scrapper
包简介
Package to get info from URL
README 文档
README
Use this package if you want to extract some HTML or JSON info from websites
Table of Contents
Installation
Install package to your root Laravel project directory
composer require paumel/scrapper
Usage
Import scraper class:
use Paumel\Scrapper\Scrapper;
If you want to scrape HTML data:
$scrapper = new Scrapper('http://test.com', 'html'); $data = $scrapper->find('a.test-class');
More about selecting HTML elements
If you want to scrape JSON data:
$scrapper = new Scrapper('http://test.com', 'json'); $data = $scrapper->find('json_parameter');
License
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-21