Name | nba-headshot-downloader JSON |
Version |
1.0.0
JSON |
| download |
home_page | None |
Summary | A package to download headshots of nba players |
upload_time | 2025-01-24 03:35:38 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | MIT License
Copyright (c) 2025 xapd421
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
keywords |
nba
headshot
|
VCS |
 |
bugtrack_url |
|
requirements |
certifi
charset-normalizer
idna
requests
urllib3
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# nba-headshot-downloader
`nba-headshot-downloader` is a package for downloading headshots of all nba players from [the official NBA website](https://www.nba.com/). This package uses ID's from the `nba_api` package to get the latest available photos of NBA players from media day.
# Getting Started
`nba-headshot-downloader` requires Python version 3.8 or higher as well as the `requests` package.
```
pip install nba-headshot-downloader
```
## Downloading Headshots
```python
from nba_headshot_downloader import headshots
headshots.getHeadshotById(2544) # download to root directory
headshots.getHeadshotById(2544, "./assets") # downloads to specified directory
```
Raw data
{
"_id": null,
"home_page": null,
"name": "nba-headshot-downloader",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "nba, headshot",
"author": null,
"author_email": "Troy Mireku <xapd421@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/47/2e/0a127e02cddd2a9c080be6bea3ff13f93ff53063562dbd5997d53898fb12/nba_headshot_downloader-1.0.0.tar.gz",
"platform": null,
"description": "# nba-headshot-downloader\n`nba-headshot-downloader` is a package for downloading headshots of all nba players from [the official NBA website](https://www.nba.com/). This package uses ID's from the `nba_api` package to get the latest available photos of NBA players from media day.\n# Getting Started\n`nba-headshot-downloader` requires Python version 3.8 or higher as well as the `requests` package.\n```\npip install nba-headshot-downloader\n```\n## Downloading Headshots\n```python\nfrom nba_headshot_downloader import headshots\n\nheadshots.getHeadshotById(2544) # download to root directory\nheadshots.getHeadshotById(2544, \"./assets\") # downloads to specified directory\n```\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2025 xapd421\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.",
"summary": "A package to download headshots of nba players",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/xapd421/nba-headshot-downloader",
"Issues": "https://github.com/xapd421/nba-headshot-downloader/issues"
},
"split_keywords": [
"nba",
" headshot"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "dffbfbd5724ded8027ee6c3ac4f24b35f0cee23077948e19412eb11761fe0066",
"md5": "0f700f073cda6132c437ae868e484846",
"sha256": "8bc148174f8f3c05b6359d2dd28ea7c5d155afcb604564c3c20a2e017aae6e3d"
},
"downloads": -1,
"filename": "nba_headshot_downloader-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0f700f073cda6132c437ae868e484846",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 3825,
"upload_time": "2025-01-24T03:35:36",
"upload_time_iso_8601": "2025-01-24T03:35:36.961644Z",
"url": "https://files.pythonhosted.org/packages/df/fb/fbd5724ded8027ee6c3ac4f24b35f0cee23077948e19412eb11761fe0066/nba_headshot_downloader-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "472e0a127e02cddd2a9c080be6bea3ff13f93ff53063562dbd5997d53898fb12",
"md5": "b3306bcbfa8b583b3c1be8b32d687d42",
"sha256": "fd3a3851eca28e8cdc88af273e66ade5bcea8c70271ffa7664fd3783b2c0bb0f"
},
"downloads": -1,
"filename": "nba_headshot_downloader-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "b3306bcbfa8b583b3c1be8b32d687d42",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 2892,
"upload_time": "2025-01-24T03:35:38",
"upload_time_iso_8601": "2025-01-24T03:35:38.623633Z",
"url": "https://files.pythonhosted.org/packages/47/2e/0a127e02cddd2a9c080be6bea3ff13f93ff53063562dbd5997d53898fb12/nba_headshot_downloader-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-24 03:35:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "xapd421",
"github_project": "nba-headshot-downloader",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "certifi",
"specs": [
[
"==",
"2024.12.14"
]
]
},
{
"name": "charset-normalizer",
"specs": [
[
"==",
"3.4.1"
]
]
},
{
"name": "idna",
"specs": [
[
"==",
"3.10"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.32.3"
]
]
},
{
"name": "urllib3",
"specs": [
[
"==",
"2.3.0"
]
]
}
],
"lcname": "nba-headshot-downloader"
}