fpalvadeau / oss-td3
Super library to scrap data from a website !
dev-main
2023-07-05 14:58 UTC
Requires
- php: >=8.0
- symfony/http-client: ^6.3
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.2
This package is auto-updated.
Last update: 2024-05-05 17:03:30 UTC
README
This library is made to retrieve data from the "annuaire des mairies"'s website of the Yvelines.'
Installation
composer install
php vendor/bin/phpstan analyze src --level=max
php vendor/bin/phpunit tests
How to retrieve all the cities name and population ?
php build/index.php
How to retrieve the city with the highest population ?
go in the build/index.php file, then replace the $scrapping->getCitiesAndPopulation()
by $scrapping->getMaxPopulation()
.
Then
php build/index.php