Skip to main content

Asynchronous Python client for getting Ziggo F1 broadcasts.

Project description

Python API fetching Ziggo F1 broadcasts

Use this package to get Formula 1 broadcasts from Ziggo.

Test ziggof1broadcasts package

Usage

import aiohttp
import asyncio

from datetime import date
from ziggof1broadcasts import get_ziggo_f1_broadcasts

async def main():
    session = aiohttp.ClientSession()

    # By default, it will return the broadcasts of today, but you can provide a date
    startTime = date.fromisoformat('2020-08-16')

    broadcasts = await get_ziggo_f1_broadcasts(session, startTime=startTime)
    print(f"{broadcasts}")

    await session.close()

if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(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

ziggof1broadcasts-0.1.0.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

ziggof1broadcasts-0.1.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

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