@@ -138,7 +138,7 @@ as 'raw':
138
138
139
139
>>> ergast.get_circuits(season = 2022 , result_type = ' raw' ) # doctest: +NORMALIZE_WHITESPACE
140
140
[{'circuitId': 'albert_park',
141
- 'url': 'https://en.wikipedia.org/wiki/Melbourne_Grand_Prix_Circuit ',
141
+ 'url': 'https://en.wikipedia.org/wiki/Albert_Park_Circuit ',
142
142
'circuitName': 'Albert Park Grand Prix Circuit',
143
143
'Location': {'lat': -37.8497,
144
144
'long': 144.968,
@@ -266,9 +266,9 @@ responds with:
266
266
>>> seasons = ergast.get_seasons(limit = 3 )
267
267
>>> seasons
268
268
season seasonUrl
269
- 0 1950 https://en.wikipedia.org/wiki/1950_Formula_One_ ...
270
- 1 1951 https://en.wikipedia.org/wiki/1951_Formula_One_ ...
271
- 2 1952 https://en.wikipedia.org/wiki/1952_Formula_One_ ...
269
+ 0 1950 https://en.wikipedia.org/wiki/1950_Formula_One ...
270
+ 1 1951 https://en.wikipedia.org/wiki/1951_Formula_One ...
271
+ 2 1952 https://en.wikipedia.org/wiki/1952_Formula_One ...
272
272
273
273
It is possible to check whether a response contains all results and to obtain
274
274
the total number of results:
@@ -287,19 +287,19 @@ same limit as before is used.
287
287
288
288
>>> seasons.get_next_result_page()
289
289
season seasonUrl
290
- 0 1953 https://en.wikipedia.org/wiki/1953_Formula_One_ ...
291
- 1 1954 https://en.wikipedia.org/wiki/1954_Formula_One_ ...
292
- 2 1955 https://en.wikipedia.org/wiki/1955_Formula_One_ ...
290
+ 0 1953 https://en.wikipedia.org/wiki/1953_Formula_One ...
291
+ 1 1954 https://en.wikipedia.org/wiki/1954_Formula_One ...
292
+ 2 1955 https://en.wikipedia.org/wiki/1955_Formula_One ...
293
293
294
294
It is also possible to manually specify an offset into the dataset:
295
295
296
296
.. doctest ::
297
297
298
298
>>> ergast.get_seasons(limit = 3 , offset = 6 )
299
299
season seasonUrl
300
- 0 1956 https://en.wikipedia.org/wiki/1956_Formula_One_ ...
301
- 1 1957 https://en.wikipedia.org/wiki/1957_Formula_One_ ...
302
- 2 1958 https://en.wikipedia.org/wiki/1958_Formula_One_ ...
300
+ 0 1956 https://en.wikipedia.org/wiki/1956_Formula_One ...
301
+ 1 1957 https://en.wikipedia.org/wiki/1957_Formula_One ...
302
+ 2 1958 https://en.wikipedia.org/wiki/1958_Formula_One ...
303
303
304
304
305
305
API Reference
0 commit comments