A performant, typed API for the Formula 1 Fantasy game .
Project description
F1 Fantasy API Client
A mildy janky implementation letting you browser the F1 fantasy data set. Certain values are guaranteed to be wrong and methods missing due to a lack of public methods. This is a best guess implementation, and I'd love any feedback.
Basic Usage
- Navigate to https://fantasy.formula1.com
- Open dev tools for your browser (typically F12)
- Click
Network - Login
- Look for a request to
/services/session/login - Click
Response - Copy the value of
GUIDandToken. - See below example.
import asyncio
from skelmis import fantasy
async def main():
client = fantasy.Client(
user_guid="GUID HERE",
token="TOKEN HERE"
)
race_id = await client.get_current_race_id()
data = await client.get_my_teams(race_id)
print(data)
if __name__ == "__main__":
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file skelmis_f1_fantasy-0.1.0.tar.gz.
File metadata
- Download URL: skelmis_f1_fantasy-0.1.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d27cff08d41c1160eb612a490c06bb945d66d411baf063fe1c807f0533d38fe3
|
|
| MD5 |
28dabb5a59f551c89a08d57badf9bfc3
|
|
| BLAKE2b-256 |
ee4576be76795e4397fc6b1e9d82da476627fc1f0b2f55b671a28f77c0207e6a
|
File details
Details for the file skelmis_f1_fantasy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: skelmis_f1_fantasy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9436d9c0d69d571c030e6dce12d35154a6aa1045ee20bbe0337d476de680fdec
|
|
| MD5 |
f447efd6f3c634dfa6e6ad438c6b4f0e
|
|
| BLAKE2b-256 |
909e8208a27af88c67c6dd93e7d443c7e5ac6eb33b9de86ba6e2eea684fa97d3
|