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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brainly_api-0.1.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file brainly_api-0.1.1.tar.gz.

File metadata

  • Download URL: brainly_api-0.1.1.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.4 Windows/10

File hashes

Hashes for brainly_api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 935beba91b24a2620c109059188f06418a1473b15deeaa70a282f4d6a2f93672
MD5 bc8c45621830b654b183d8edac1abe96
BLAKE2b-256 35264ae98da3790f0d80721946558a2a328057b4583edbcf21f1e96f8fd20d2f

See more details on using hashes here.

File details

Details for the file brainly_api-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: brainly_api-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.4 Windows/10

File hashes

Hashes for brainly_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c6f8b886ac661271cff206cb4cb5867a09b3cfa726a6c816bac49a40e971b6d
MD5 0c8d015ff8dfc78e52dad750bad8477f
BLAKE2b-256 d3f77f797aeb9784c4eaff6da8175f65f64e14d96d67eb305c58bb88553d92b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page