A API integrator for Geoguessr
Project description
This is a Geoguessr API client written in Python. It allows you to interact with the Geoguessr API, such as getting information about users, challenges, maps, and scores.
To install the package, run the following command:
pip install geoguessr-async
Once the package is installed, you can create a client object by passing your NCFA cookie to the constructor:
from geoguessr_async import Geoguessr
client = Geoguessr("your_ncf_a_cookie")
You can then use the client object to get information about users, challenges, maps, and scores. For example, to get information about yourself, you can use the following code:
user = client.get_user_infos("your_user_id")
The user
object will contain information such as your username, country, and number of games played.
To get information about a challenge, you can use the following code:
challenge = client.get_challenge_infos("https://geoguessr.com/challenge/xxxx")
The challenge
object will contain information such as the challenge name, description, and time limit.
To get information about a map, you can use the following code:
map = client.get_map_infos("https://geoguessr.com/maps/xxxx")
The map
object will contain information such as the map name, size, and location.
To get information about a score, you can use the following code:
score = client.get_score_infos("https://geoguessr.com/challenge/xxxx/xxxx")
The score
object will contain information such as the player's name, score, and time.
I hope you find this package useful! Please let me know if you have any questions or feedback.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for geoguessr_async-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 779a52d567d97175517fe1a87cecbed124c52f0689c3972a27ffcf0bc36b55bb |
|
MD5 | f8ae522522b8f28ca421e165abe089e9 |
|
BLAKE2b-256 | 860a0b56d685e1b4e0d314bab67baf9ef4d908640c49f6720e08639deb3227f3 |