anime-autodownloader-0.0.3
توضیحات
A package for downloading animes automatically from a given streaming website
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | anime-autodownloader-0.0.3 |
| نام | anime-autodownloader |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Luca Paganin |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/LucaPaganin/animedownloader |
| آدرس اینترنتی | https://pypi.org/project/anime-autodownloader/ |
| مجوز | MIT |
# anime-autodownloader
A package for automatically download animes. For now supported websites are
- AnimeUnity: https://animeunity.tv
## Installation
To install from PyPI simple type
```
pip install anime-autodownloader
```
### From source code
- You need first to install poetry https://python-poetry.org/docs/#installation
- Then clone this repository, go inside it and type the command
```
poetry install
```
## Usage
```python
import logging
from pathlib import Path
from anime_autodownloader import configure_logger, getNavigator, getSupportedSites, Downloader
loglevel = logging.INFO
logger = logging.getLogger()
configure_logger(logger, loglevel, logfile="anime_download.log")
nav = getNavigator("AnimeUnity", "https://www.animeunity.tv/anime/2791-jujutsu-kaisen")
logger.info("start")
output_dir = Path.home() / "Downloads"
nav.visitBaseUrl()
urls = nav.collectAllDownloadUrls()
dw = Downloader(num_workers=5, output_dir=output_dir)
dw.download_files(urls, timeout=5400, blocking=True)
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.28.2,<3.0.0 | requests |
| >=4.8.2,<5.0.0 | selenium |
| >=0.1.0,<0.2.0 | uuid-by-string |
| >=3.10.4,<4.0.0 | filelock |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10,<4.0 | Python |
نحوه نصب
نصب پکیج whl anime-autodownloader-0.0.3:
pip install anime-autodownloader-0.0.3.whl
نصب پکیج tar.gz anime-autodownloader-0.0.3:
pip install anime-autodownloader-0.0.3.tar.gz