The ultimate HTTP library designed to communicate with the Brainly APIs
Project description
Brainly API Client
The ultimate Python library to access the Brainly REST API and Brainly GraphQL API
All Brainly markets supported. Async by default.
Install
pip install brainly-api
Usage
from brainly_api import BrainlyAPI
api = BrainlyAPI(
token="XXXXXX", # token long
market="dd",
legacy_api_host="http://ru.data.api.z-dn.net",
graphql_api_host="https://graphql.z-dn.net"
)
# ...
user = await api.get_user(34)
print(user)
Notes
This is not an official API wrapper affiliated with Brainly.
The Brainly API is undocumented, so this library only contains well-known publicly accessible API endpoints.
I'm getting blocked by Brainly
Brainly is blocking automated requests.
This library uses plain HTTP requests with no anti-blocking strategy, so if you're trying to access publicly known Brainly hosts (e.g., https://brainly.com/api/28), you may be getting blocked.
If you want unblocked access to Brainly APIs, please contact me
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 brainly_api-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c6f8b886ac661271cff206cb4cb5867a09b3cfa726a6c816bac49a40e971b6d |
|
MD5 | 0c8d015ff8dfc78e52dad750bad8477f |
|
BLAKE2b-256 | d3f77f797aeb9784c4eaff6da8175f65f64e14d96d67eb305c58bb88553d92b7 |