joanne/scrapping-php
最新稳定版本:1.0.0
Composer 安装命令:
composer require joanne/scrapping-php
包简介
README 文档
README
This project is a PHP scraping application that retrieves data from a website using the DomCrawler component of Symfony.
We retrieve the following information from the website https://www.planete-sonic.com/univers/personnages/personnages-des-jeux/:
- Character name
- Character image
- Character description
Prerequisites
- PHP 8.0 or later
Installation
- Clone the repository:
git clone
- Install the dependencies:
composer install
Usage of Symfony Components
This project uses the following Symfony components:
- DomCrawler
- HttpClient
- CssSelector
These components provide powerful functionalities for web scraping, allowing you to navigate through HTML and extract desired data.
Tests
To perform static code analysis, use PHPStan:
php vendor/bin/phpstan analyze src --level=max
To run unit tests, use PHPUnit:
php vendor/bin/phpunit tests
Contributors
- Joanne Massillon @joannemas
Licence
This project is licensed under the MIT License.
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-05