https://github.com/pratikpc/formula-one-six-degrees-metadata
Extract Driver Pairs from https://fiaresultsandstatistics.motorsportstats.com/
https://github.com/pratikpc/formula-one-six-degrees-metadata
Last synced: 23 days ago
JSON representation
Extract Driver Pairs from https://fiaresultsandstatistics.motorsportstats.com/
- Host: GitHub
- URL: https://github.com/pratikpc/formula-one-six-degrees-metadata
- Owner: pratikpc
- License: mit
- Created: 2020-08-23T16:36:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-10T06:55:46.000Z (over 2 years ago)
- Last Synced: 2025-03-30T00:31:53.706Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://pratikpc.github.io/six-degree-f1/
- Size: 4.52 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Formula One Six Degrees Metadata
## Website [https://pratikpc.github.io/six-degree-f1/](https://pratikpc.github.io/six-degree-f1/)
[](https://opensource.org/licenses/MIT) [](http://www.typescriptlang.org/) [](https://github.com/prettier/prettier)
Extracts Driver Pairs, Distances Between Drivers, Generates them and Stores them for you to utilise in your JS or TS App [from this URL](https://fiaresultsandstatistics.motorsportstats.com/)
```ts
import {
Drivers,
TeamAndDriver,
TeamMates,
DriverIdAndNameLink,
Distance,
Path,
TeamIdAndNameLink,
TeamNamesAndDrivers
} from 'formula-one-six-degrees-metadata';
```
## Generate
```ts
const SEASONF = 1950;
const SEASONE = 2020;
const TEAM_DRIVER_HEADER = '._2xhp6';
const TEAM_DRIVER_TABLE_HEADER = 'Vv8Fg';
const ENTRY_LIST = 'h2._2Asch:contains("Entry List")';
```
Modify this variable in [lib/Run.ts]('./lib/run.ts') based on the HTML from FIA's website and then run `npm run build` and `npm run generate`