1.0.1 • Published 4 years ago

formula-one-six-degrees-metadata v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Formula One Six Degrees Metadata

Website https://pratikpc.github.io/six-degree-f1/

License: MIT TypeScript code style: 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

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