Skip to main content

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 GUID and Token.
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skelmis_f1_fantasy-0.1.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skelmis_f1_fantasy-0.1.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

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

Hashes for skelmis_f1_fantasy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d27cff08d41c1160eb612a490c06bb945d66d411baf063fe1c807f0533d38fe3
MD5 28dabb5a59f551c89a08d57badf9bfc3
BLAKE2b-256 ee4576be76795e4397fc6b1e9d82da476627fc1f0b2f55b671a28f77c0207e6a

See more details on using hashes here.

File details

Details for the file skelmis_f1_fantasy-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for skelmis_f1_fantasy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9436d9c0d69d571c030e6dce12d35154a6aa1045ee20bbe0337d476de680fdec
MD5 f447efd6f3c634dfa6e6ad438c6b4f0e
BLAKE2b-256 909e8208a27af88c67c6dd93e7d443c7e5ac6eb33b9de86ba6e2eea684fa97d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page