betty.wikipedia.client module¶
Interact with the Wikipedia Query API.
- class betty.wikipedia.client.Client[source]¶
Bases:
objectFetch information from the Wikipedia Query API.
This is internal. It MAY be used anywhere in Betty’s source code, but MUST NOT be used by third-party code.
- __init__(fetcher: Fetcher, rate_limiter: RateLimiter)[source]¶
- async get_place_coordinates(page_language: str, page_name: str) Point | None[source]¶
Get the coordinates for a page that is a place.