Skip to content

Instantly share code, notes, and snippets.

View kaijchang's full-sized avatar

Kai Chang kaijchang

View GitHub Profile
# pip install "gql[all]"
from gql import gql, Client
from gql.transport.aiohttp import AIOHTTPTransport
transport = AIOHTTPTransport(url="https://graphql-prod-4626.prod.aws.worldathletics.org/graphql", headers={
"x-api-key": "da2-f5bnlno2fvhzldaq5bvyj7ccry"
})
client = Client(transport=transport, fetch_schema_from_transport=True)