Skip to main content

The ultimate HTTP library designed to communicate with the Brainly APIs

Project description

Brainly API Client

PyPI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brainly_api-0.1.1.tar.gz (17.8 kB view hashes)

Uploaded Source

Built Distribution

brainly_api-0.1.1-py3-none-any.whl (11.2 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