You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+51-38Lines changed: 51 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -4,46 +4,12 @@
4
4
5
5
The scraper scrapes this website: https://www.formula1.com
6
6
7
-
##Installation
7
+
# Installation
8
8
```bash
9
9
npm i f1-api-node
10
10
```
11
-
## Functions
12
-
13
-
-**getConstructorStandings**
14
-
15
-
Fetch Constructors standings from points table.
16
-
The function takes one argument: The year from which you want to extract points table for.
17
-
Default argument is the current year.
18
-
19
-
-**getDriverStandings**
20
-
Fetch F1 driver standings from points table.
21
-
The function takes one argument: The year from which you want to extract points table for.
22
-
Default argument is the current year.
23
-
24
-
-**getDriverData**
25
-
Fetch the current lineup of F1 drivers.
26
-
_No arguments_
27
-
28
-
-**getTeamsData**
29
-
Fetch the current list of F1 teams along with their information.
30
-
_No arguments_
11
+
# Example snippet
31
12
32
-
-**getWorldChampions**
33
-
Fetch all the world champions
34
-
_No arguments_
35
-
36
-
-**getRaceResults**
37
-
Fetch race results for all the grand prix in a given year.
38
-
The function takes one argument: The year from which you want to extract race results.
39
-
40
-
## Snapshots
41
-
42
-
If you want to have a look at the output from the given functions check [this](https://github.com/yashkathe/F1-API/tree/master/__tests__/__snapshots__).
43
-
44
-
## Example snippet
45
-
46
-
Example on how to use one of the given functions.
47
13
The following function will print the current lineup of F1 drivers.
| Fetch Constructors standings from points table | Yes - 1 | The year from which you want to extract points table for (1950 - current) | current year |
| Fetch race results of all the grand prix in a given year | Yes - 1 | The year from which you want to extract race results (1950 - current) | - |
65
+
66
+
67
+
# Snapshots
68
+
69
+
If you want to have a look at the output from the given functions check [this](https://github.com/yashkathe/F1-API/tree/master/__tests__/__snapshots__).
70
+
71
+
72
+
73
+
# Usage
61
74
WARNING: Abusing this library may result in an IP ban from the host website.
62
75
Please use with caution and try to limit the rate and amount of your requests if you value your access to formula1.com
63
76
64
-
##Report Problems
77
+
# Report Problems
65
78
66
79
If you have any problems regarding this project, read the following [disclaimer](https://github.com/yashkathe/F1-API/blob/master/DISCLAIMER.md).
0 commit comments