Name | 24ur-api JSON |
Version |
0.1.6
JSON |
| download |
home_page | None |
Summary | Unofficial 24ur API |
upload_time | 2024-10-30 21:46:35 |
maintainer | None |
docs_url | None |
author | None |
requires_python | ~=3.8 |
license | MIT |
keywords |
24ur
api
scraper
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Unofficial 24ur API Client
[![License: MIT](https://img.shields.io/badge/license-MIT-C06524)](https://github.com/amadejkastelic/24ur-api/blob/main/LICENSE)
[![PyPI - Version](https://img.shields.io/pypi/v/24ur-api.svg)](https://pypi.org/project/24ur-api/)
[![Downloads](https://static.pepy.tech/badge/24ur-api)](https://pepy.tech/project/24ur-api)
## Installation
```bash
pip install 24ur-api
```
- With video download support
```bash
pip install 24ur-api[video]
```
## Usage
```python
from api_24ur import client
cl = client.Client()
# Get article by URL with 10 comments
article = await cl.get_article_by_url(url='<article_url>', num_comments=10)
# Download the first video of article with bitrate lower than 2000000b to current dir
await cl.download_video(stream_url=article.videos[0].url, download_path='.', max_bitrate=2000000)
# Or get bytes
await cl.download_video_bytes(stream_url=article.videos[0].url, max_bitrate=2000000)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "24ur-api",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.8",
"maintainer_email": null,
"keywords": "24ur, api, scraper",
"author": null,
"author_email": "Amadej Kastelic <amadejkastelic7@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/3f/99/014a1db9127946ee6440b44f5bb50ea98f89ff9f7be887d795205a1c9f28/24ur_api-0.1.6.tar.gz",
"platform": null,
"description": "# Unofficial 24ur API Client\n\n[![License: MIT](https://img.shields.io/badge/license-MIT-C06524)](https://github.com/amadejkastelic/24ur-api/blob/main/LICENSE)\n[![PyPI - Version](https://img.shields.io/pypi/v/24ur-api.svg)](https://pypi.org/project/24ur-api/)\n[![Downloads](https://static.pepy.tech/badge/24ur-api)](https://pepy.tech/project/24ur-api)\n\n## Installation\n\n```bash\npip install 24ur-api\n```\n- With video download support\n```bash\npip install 24ur-api[video]\n```\n\n## Usage\n\n```python\nfrom api_24ur import client\n\ncl = client.Client()\n\n# Get article by URL with 10 comments\narticle = await cl.get_article_by_url(url='<article_url>', num_comments=10)\n\n# Download the first video of article with bitrate lower than 2000000b to current dir\nawait cl.download_video(stream_url=article.videos[0].url, download_path='.', max_bitrate=2000000)\n# Or get bytes\nawait cl.download_video_bytes(stream_url=article.videos[0].url, max_bitrate=2000000)\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Unofficial 24ur API",
"version": "0.1.6",
"project_urls": {
"Homepage": "https://github.com/amadejkastelic/24ur-api",
"Source": "https://github.com/amadejkastelic/24ur-api",
"Tracker": "https://github.com/amadejkastelic/24ur-api/issues"
},
"split_keywords": [
"24ur",
" api",
" scraper"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "40e25dc8ea2fdabfa4a26729173147eed786147da905d771399db490711ddc9f",
"md5": "d75fbb137950ef17154a31b56be75667",
"sha256": "6418c385f3ce6e688bf358dac400746e7a1479b499efbe686108aa4adecf7911"
},
"downloads": -1,
"filename": "24ur_api-0.1.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d75fbb137950ef17154a31b56be75667",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.8",
"size": 8815,
"upload_time": "2024-10-30T21:46:34",
"upload_time_iso_8601": "2024-10-30T21:46:34.321561Z",
"url": "https://files.pythonhosted.org/packages/40/e2/5dc8ea2fdabfa4a26729173147eed786147da905d771399db490711ddc9f/24ur_api-0.1.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3f99014a1db9127946ee6440b44f5bb50ea98f89ff9f7be887d795205a1c9f28",
"md5": "3a8830ebf9f6b96272226e18c510f156",
"sha256": "b980e04e5e11d525b9967fc9db20d88b3a9ab526dcc86e54852a1a47380612b0"
},
"downloads": -1,
"filename": "24ur_api-0.1.6.tar.gz",
"has_sig": false,
"md5_digest": "3a8830ebf9f6b96272226e18c510f156",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.8",
"size": 7614,
"upload_time": "2024-10-30T21:46:35",
"upload_time_iso_8601": "2024-10-30T21:46:35.892222Z",
"url": "https://files.pythonhosted.org/packages/3f/99/014a1db9127946ee6440b44f5bb50ea98f89ff9f7be887d795205a1c9f28/24ur_api-0.1.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-30 21:46:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "amadejkastelic",
"github_project": "24ur-api",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "24ur-api"
}