clicktt-crawler
Extracts championship results, schedules and statistics from from https://www.mytischtennis.de/clicktt/home/ and provides data as JSON
Commands
clicktt-crawler provides a CLI with useful commands
Setup
- Add
clicktt-crawler
as global dependency using yarn or npm
List of commands
Command | Description |
---|---|
results [options] <league> <groupId> <round> |
Get match results |
standings [options] <league> <groupId> |
Get standings |
schedule [options] <league> <groupId> <clubId> <club> |
Get schedule for a club |
player-statistics [options] <league> <groupId> <clubId> <club> |
Get player statistics |
double-statistics [options] <league> <groupId> <clubId> <club> |
Get double statistics |
You can use --help
with any command to get detailed usage. Common arguments are:
-s
or --save
: Save the JSON data to a file
-f <file>
or --file <file>
: Name of the file to save to
Usage
$ clicktt results "Kreisliga-Sued-West" "359928" "rr"
: Print the results to the console
$ clicktt results "Kreisliga-Sued-West" "359928" "rr" -s
: Save the result to a file results_Kreisliga-Sued-West_359928_rr.json
$ clicktt results "Kreisliga-Sued-West" "359928" "rr" -s -f results.json
: Save the result to a file result.json
clicktt-crawler
programmatically
Use Setup
- Add
clicktt-crawler
dependency using yarn or npm to your project
Usage
const ClickTTCrawler = const crawler = baseUrl: 'https://www.mytischtennis.de/clicktt' organisation: 'PTTV' season: '19-20'const result = await crawler
JSON data format
Results
Double statistics
Single players statistics
Schedule
Standings
License
Copyright (c) Philipp Bender philipp.bender.de@googlemail.com