fpalvadeau/oss-td3

Super library to scrap data from a website !

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/fpalvadeau/oss-td3

dev-main 2023-07-05 14:58 UTC

This package is auto-updated.

Last update: 2025-10-05 20:07:00 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