Skip to main content

biathlonresults.com API for Python

Project description

biathlonresults.com API for Python

Find athlete:

import biathlonresults
athletes = biathlonresults.athletes('boe')
for i in athletes['Athletes']:
    print(i['IBUId'], i['FamilyName'], i['GivenName'])
# output:
# BTNOR11605199301 BOE Johannes Thingnes
# BTNOR12307197201 BOE Karl Gunnar
# BTNOR12107199801 BOE Magnus
# BTNOR12907198801 BOE Tarjei
# ...

Get last races of athlete:

import biathlonresults
res = biathlonresults.all_results('BTNOR11605199301')
for i in res['Results'][:3]:
    print(i['Comp'], i['Season'], i['Place'], i['Rank'])
# output:    
# MS 18/19 Oslo 1.
# PU 18/19 Oslo 1.
# SP 18/19 Oslo 1.

Get WC 2019/2020 stages:

import biathlonresults
events = biathlonresults.events(1920, 1)
for i in events:
    print(i['StartDate'][:10], i['ShortDescription'])
# output:
# 2019-12-01 Oestersund
# 2019-12-12 Hochfilzen
# 2019-12-16 Annecy-Le Grand Bornand
# 2020-01-06 Oberhof
# 2020-01-13 Ruhpolding
# 2020-01-20 Pokljuka
# 2020-02-12 Antholz-Anterselva
# 2020-03-02 Nove Mesto
# 2020-03-09 Kontiolahti

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

biathlonresults-0.1b1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

biathlonresults-0.1b1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file biathlonresults-0.1b1.tar.gz.

File metadata

  • Download URL: biathlonresults-0.1b1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.7

File hashes

Hashes for biathlonresults-0.1b1.tar.gz
Algorithm Hash digest
SHA256 635ce7f6d80dd6a213bd40bfadef8d2c2fd4d3106ac6c5e579aefe3a49cfa1df
MD5 eb7de78461a1b09ef8b7a4b09baa988f
BLAKE2b-256 0e3c808dddd817fecd421af81588f2debbb892f4904e5eca5ee5cefac0d81d0b

See more details on using hashes here.

File details

Details for the file biathlonresults-0.1b1-py3-none-any.whl.

File metadata

  • Download URL: biathlonresults-0.1b1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.7

File hashes

Hashes for biathlonresults-0.1b1-py3-none-any.whl
Algorithm Hash digest
SHA256 3406e867aa4fa1e34994010e913e5337f0d10d1f46224d1fff542f11101750e5
MD5 37b3184ffd4590bdf7d419790d15b85c
BLAKE2b-256 4d96fac7f25ed3a2b7f417a6b6b22e1e9e5fbce4164c193072c3284e20ca1b75

See more details on using hashes here.

Supported by

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