brainly-api


Namebrainly-api JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/vlaex/brainly-api-python
SummaryThe ultimate HTTP library designed to communicate with the Brainly APIs
upload_time2024-03-11 15:40:34
maintainer
docs_urlNone
authorvlaex
requires_python>=3.11,<4.0
licenseMIT
keywords api brainly brainly api znanija nosdevoirs brainly.com znanija.com
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Brainly API Client

[![PyPI](https://img.shields.io/pypi/v/brainly-api.svg)](https://pypi.python.org/pypi/brainly-api)

The ultimate Python library to access the **[Brainly REST API](https://brainly.com/api/28)** and **[Brainly GraphQL API](https://brainly.com/graphql/us)**

All Brainly markets supported. Async by default.

## Install

```bash
pip install brainly-api
```

## Usage

```python
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](https://t.me/vlaex)
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/vlaex/brainly-api-python",
    "name": "brainly-api",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11,<4.0",
    "maintainer_email": "",
    "keywords": "api,brainly,brainly api,znanija,nosdevoirs,brainly.com,znanija.com",
    "author": "vlaex",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/35/26/4ae98da3790f0d80721946558a2a328057b4583edbcf21f1e96f8fd20d2f/brainly_api-0.1.1.tar.gz",
    "platform": null,
    "description": "# Brainly API Client\n\n[![PyPI](https://img.shields.io/pypi/v/brainly-api.svg)](https://pypi.python.org/pypi/brainly-api)\n\nThe ultimate Python library to access the **[Brainly REST API](https://brainly.com/api/28)** and **[Brainly GraphQL API](https://brainly.com/graphql/us)**\n\nAll Brainly markets supported. Async by default.\n\n## Install\n\n```bash\npip install brainly-api\n```\n\n## Usage\n\n```python\nfrom brainly_api import BrainlyAPI\n\napi = BrainlyAPI(\n    token=\"XXXXXX\", # token long\n    market=\"dd\",\n    legacy_api_host=\"http://ru.data.api.z-dn.net\",\n    graphql_api_host=\"https://graphql.z-dn.net\"\n)\n\n# ...\n\nuser = await api.get_user(34)\nprint(user)\n```\n\n## Notes\n\nThis is not an official API wrapper affiliated with Brainly.\n\nThe Brainly API is undocumented, so this library only contains well-known publicly accessible API endpoints.\n\n### I'm getting blocked by Brainly\n\nBrainly is blocking automated requests.\n\nThis 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.\n\nIf you want unblocked access to Brainly APIs, please [contact me](https://t.me/vlaex)",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "The ultimate HTTP library designed to communicate with the Brainly APIs",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/vlaex/brainly-api-python",
        "Repository": "https://github.com/vlaex/brainly-api-python"
    },
    "split_keywords": [
        "api",
        "brainly",
        "brainly api",
        "znanija",
        "nosdevoirs",
        "brainly.com",
        "znanija.com"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d3f77f797aeb9784c4eaff6da8175f65f64e14d96d67eb305c58bb88553d92b7",
                "md5": "0c8d015ff8dfc78e52dad750bad8477f",
                "sha256": "7c6f8b886ac661271cff206cb4cb5867a09b3cfa726a6c816bac49a40e971b6d"
            },
            "downloads": -1,
            "filename": "brainly_api-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0c8d015ff8dfc78e52dad750bad8477f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11,<4.0",
            "size": 11220,
            "upload_time": "2024-03-11T15:40:33",
            "upload_time_iso_8601": "2024-03-11T15:40:33.212753Z",
            "url": "https://files.pythonhosted.org/packages/d3/f7/7f797aeb9784c4eaff6da8175f65f64e14d96d67eb305c58bb88553d92b7/brainly_api-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "35264ae98da3790f0d80721946558a2a328057b4583edbcf21f1e96f8fd20d2f",
                "md5": "bc8c45621830b654b183d8edac1abe96",
                "sha256": "935beba91b24a2620c109059188f06418a1473b15deeaa70a282f4d6a2f93672"
            },
            "downloads": -1,
            "filename": "brainly_api-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "bc8c45621830b654b183d8edac1abe96",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11,<4.0",
            "size": 17773,
            "upload_time": "2024-03-11T15:40:34",
            "upload_time_iso_8601": "2024-03-11T15:40:34.815460Z",
            "url": "https://files.pythonhosted.org/packages/35/26/4ae98da3790f0d80721946558a2a328057b4583edbcf21f1e96f8fd20d2f/brainly_api-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-11 15:40:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "vlaex",
    "github_project": "brainly-api-python",
    "github_not_found": true,
    "lcname": "brainly-api"
}
        
Elapsed time: 0.20642s