A web scraper for the MoonBoard website.
- PHP >= 8.2.0
- Zip PHP Extension
Clone this repository and install Composer packages:
git clone https://github.com/ngmy/moonboard-web-scraper.git
cd moonboard-web-scraper
composer install --no-dev
Also, set your MoonBoard username and password to the MOONBOARD_USERNAME
and MOONBOARD_PASSWORD
environment
variables.
MoonBoard Web Scraper commands are invoked using the bin/moonboard-web-scraper
script.
Run the scrape-benchmarks
command and wait for JSON files of benchmarks to appear:
bin/moonboard-web-scraper scrape-benchmarks
Run the scrape-logbook
command and wait for JSON files of the logbook to appear:
bin/moonboard-web-scraper scrape-logbook
Run the scrape-user-profiles
command and wait for JSON files of user profiles to appear:
bin/moonboard-web-scraper scrape-user-profiles
You can also specify the user IDs to scrape by passing the --user-ids-file
option:
bin/moonboard-web-scraper scrape-user-profiles --user-ids-file=user_ids.txt
Please see the changelog.
MoonBoard Web Scraper is open-sourced software licensed under the MIT license.