formula-one-six-degrees-metadata
v1.0.1
Published
Extracts Driver Pairs, Distances Between Drivers, Generates them and Stores them for you to utilise in your JS or TS App from FIA's Website
Downloads
6
Maintainers
Readme
Formula One Six Degrees Metadata
Website https://pratikpc.github.io/six-degree-f1/
Extracts Driver Pairs, Distances Between Drivers, Generates them and Stores them for you to utilise in your JS or TS App from this URL
import {
Drivers,
TeamAndDriver,
TeamMates,
DriverIdAndNameLink,
Distance,
Path,
TeamIdAndNameLink,
TeamNamesAndDrivers
} from 'formula-one-six-degrees-metadata';
Generate
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 based on the HTML from FIA's website and then run npm run build
and npm run generate