nbb-api


Namenbb-api JSON
Version 0.1.11 PyPI version JSON
download
home_pagehttps://github.com/GabrielPastorello/nbb_api
SummaryPython package for easy access to Brazilian basketball data: NBB (Novo Basquete Brasil), Liga Ouro and LDB
upload_time2024-05-04 21:30:38
maintainerNone
docs_urlNone
authorGabriel Speranza Pastorello
requires_python>=3.6
licenseMIT
keywords nbb novo basquete brasil scraper basketball international basketball brazil ldb liga-ouro
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
<img src="https://user-images.githubusercontent.com/57769272/224566374-c8c748c7-c663-489f-8b98-d7041ab4092a.png" width="150">
</p>
<p align="center">
    <a href="https://pypi.org/project/nbb-api/">
        <img src="https://img.shields.io/pypi/v/nbb-api" alt="pypi" />
    </a>
    <a href="https://pypi.org/project/nbb-api/">
        <img src="https://img.shields.io/pypi/pyversions/nbb-api" alt="python version" />
    </a>
    <a href="https://pypi.org/project/nbb-api/">
        <img src="https://img.shields.io/pypi/l/nbb-api" alt="license" />
    </a>
</p>

# nbb_api

Python package for easy access to Brazilian basketball data through scraping of [LNB](https://lnb.com.br/) website.

This allows users to obtain statistics, standings, and scores for various seasons and phases of the following tournaments:
- **NBB** (Novo Basquete Brasil)
- **LDB** (Liga de Desenvolvimento de Basquete)
- **Liga Ouro**

## Installing
### Via `pip`
This library was written as an exercise for creating my first PyPi package. Hopefully you will find it valuable!
Install with the following command:

```
pip install nbb-api
```

## Documentation
For documentation about the API methods refer to [the documentation](https://github.com/GabrielPastorello/nbb_api/blob/main/API.md).

## Example of use
```
from nbb_api import nbb
```

```
nbb.get_stats('2022-23','regular','cestinhas').head()
```
Output:
|     | Jogador       | Equipe          | JO | Min   | Pts   | 3P      | 2P    | LL   | Camisa | Temporada |
| --- | ------------- | --------------- | -- | ----- | ----- | ------- | ----- | ---- | ------ | --------- |
| 0   | McClanahan    | Fortaleza B. C. | 27 | 34.11 | 20.89 | 6.11    | 10.89 | 3.89 | 22     | 2022-23   |
| 1   | Antonio       | UNIFACISA       | 26 | 31.74 | 17.96 | 6.00    | 8.85  | 3.12 | 11     | 2022-23   |
| 2   | Thomas        | Corinthians     | 27 | 32.13 | 17.67 | 5.44    | 8.15  | 4.07 | 0      | 2022-23   |
| 3   | Lucas Mariano | Sesi Franca     | 22 | 27.41 | 17.59 | 7.23    | 7.64  | 2.73 | 28     | 2022-23   |
| 4   | Lucas Dias    | Sesi Franca     | 20 | 30.65 | 17.50 | 5.85    | 8.60  | 3.05 | 9      | 2022-23   |

Use it wisely!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/GabrielPastorello/nbb_api",
    "name": "nbb-api",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "nbb, novo basquete brasil, scraper, basketball, international basketball, brazil, ldb, liga-ouro",
    "author": "Gabriel Speranza Pastorello",
    "author_email": "gabriel.pastorello01@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b2/6a/17f46b85297cce8982a015988f6f695b7eed711fffb9ca96e6c8583d62ed/nbb_api-0.1.11.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\r\n<img src=\"https://user-images.githubusercontent.com/57769272/224566374-c8c748c7-c663-489f-8b98-d7041ab4092a.png\" width=\"150\">\r\n</p>\r\n<p align=\"center\">\r\n    <a href=\"https://pypi.org/project/nbb-api/\">\r\n        <img src=\"https://img.shields.io/pypi/v/nbb-api\" alt=\"pypi\" />\r\n    </a>\r\n    <a href=\"https://pypi.org/project/nbb-api/\">\r\n        <img src=\"https://img.shields.io/pypi/pyversions/nbb-api\" alt=\"python version\" />\r\n    </a>\r\n    <a href=\"https://pypi.org/project/nbb-api/\">\r\n        <img src=\"https://img.shields.io/pypi/l/nbb-api\" alt=\"license\" />\r\n    </a>\r\n</p>\r\n\r\n# nbb_api\r\n\r\nPython package for easy access to Brazilian basketball data through scraping of [LNB](https://lnb.com.br/) website.\r\n\r\nThis allows users to obtain statistics, standings, and scores for various seasons and phases of the following tournaments:\r\n- **NBB** (Novo Basquete Brasil)\r\n- **LDB** (Liga de Desenvolvimento de Basquete)\r\n- **Liga Ouro**\r\n\r\n## Installing\r\n### Via `pip`\r\nThis library was written as an exercise for creating my first PyPi package. Hopefully you will find it valuable!\r\nInstall with the following command:\r\n\r\n```\r\npip install nbb-api\r\n```\r\n\r\n## Documentation\r\nFor documentation about the API methods refer to [the documentation](https://github.com/GabrielPastorello/nbb_api/blob/main/API.md).\r\n\r\n## Example of use\r\n```\r\nfrom nbb_api import nbb\r\n```\r\n\r\n```\r\nnbb.get_stats('2022-23','regular','cestinhas').head()\r\n```\r\nOutput:\r\n|     | Jogador       | Equipe          | JO | Min   | Pts   | 3P      | 2P    | LL   | Camisa | Temporada |\r\n| --- | ------------- | --------------- | -- | ----- | ----- | ------- | ----- | ---- | ------ | --------- |\r\n| 0   | McClanahan    | Fortaleza B. C. | 27 | 34.11 | 20.89 | 6.11    | 10.89 | 3.89 | 22     | 2022-23   |\r\n| 1   | Antonio       | UNIFACISA       | 26 | 31.74 | 17.96 | 6.00    | 8.85  | 3.12 | 11     | 2022-23   |\r\n| 2   | Thomas        | Corinthians     | 27 | 32.13 | 17.67 | 5.44    | 8.15  | 4.07 | 0      | 2022-23   |\r\n| 3   | Lucas Mariano | Sesi Franca     | 22 | 27.41 | 17.59 | 7.23    | 7.64  | 2.73 | 28     | 2022-23   |\r\n| 4   | Lucas Dias    | Sesi Franca     | 20 | 30.65 | 17.50 | 5.85    | 8.60  | 3.05 | 9      | 2022-23   |\r\n\r\nUse it wisely!\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python package for easy access to Brazilian basketball data: NBB (Novo Basquete Brasil), Liga Ouro and LDB",
    "version": "0.1.11",
    "project_urls": {
        "Homepage": "https://github.com/GabrielPastorello/nbb_api"
    },
    "split_keywords": [
        "nbb",
        " novo basquete brasil",
        " scraper",
        " basketball",
        " international basketball",
        " brazil",
        " ldb",
        " liga-ouro"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "513b41e0a1b42e1e324c79402edabad6dd62500b0f3b78a252f8a2e6706ebef6",
                "md5": "853d262dd43538ba0c890ab4b4f113a4",
                "sha256": "f56016df9d2f3f1f92afa8f10001fc0a8fcb32fc9d0c10b5e0c01e094944d8b7"
            },
            "downloads": -1,
            "filename": "nbb_api-0.1.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "853d262dd43538ba0c890ab4b4f113a4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6919,
            "upload_time": "2024-05-04T21:30:36",
            "upload_time_iso_8601": "2024-05-04T21:30:36.958101Z",
            "url": "https://files.pythonhosted.org/packages/51/3b/41e0a1b42e1e324c79402edabad6dd62500b0f3b78a252f8a2e6706ebef6/nbb_api-0.1.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b26a17f46b85297cce8982a015988f6f695b7eed711fffb9ca96e6c8583d62ed",
                "md5": "6a7ed8b612f12f2b91cec89232c73e35",
                "sha256": "27dd4769c9819df27a2a8c113b0fcc74d82d301010bd8f4ab5e27df103c55d73"
            },
            "downloads": -1,
            "filename": "nbb_api-0.1.11.tar.gz",
            "has_sig": false,
            "md5_digest": "6a7ed8b612f12f2b91cec89232c73e35",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4724,
            "upload_time": "2024-05-04T21:30:38",
            "upload_time_iso_8601": "2024-05-04T21:30:38.728362Z",
            "url": "https://files.pythonhosted.org/packages/b2/6a/17f46b85297cce8982a015988f6f695b7eed711fffb9ca96e6c8583d62ed/nbb_api-0.1.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-04 21:30:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "GabrielPastorello",
    "github_project": "nbb_api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "nbb-api"
}
        
Elapsed time: 0.35569s