Personal Python utilities for FTP and video downloads
Project description
zytools-fs
Personal Python utilities for FTP and video downloads.
Install
pip install zytools-fs
FTP download
from zytools.utils.ftp import FTPDownloader
with FTPDownloader(host="127.0.0.1", user="user", password="password") as ftp:
ftp.download("/remote/path", "./downloads")
Bilibili video download
from zytools.video import download_bili_video
download_bili_video(
"https://www.bilibili.com/video/BVxxxx",
output_dir="./downloads",
filename="Bilibili_{BV}_{Date}_{Part}_{Duration}",
)
Filename template fields:
{Title}: video title{BV}: BV id{Date}: publish date,YYYYMMDD{Page}: page number{Part}: page number{Duration}: duration in seconds{PartTitle}: page title
Task update
from zytools.utils import TaskUpdater, update_task
update_task(
name="daily job",
machine_id="machine-1",
script_path="/path/to/script.py",
server="http://127.0.0.1:8000",
)
task = TaskUpdater(
name="daily job",
machine_id="machine-1",
script_path="/path/to/script.py",
)
task.update()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zytools_fs-0.0.3.tar.gz
(11.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zytools_fs-0.0.3.tar.gz.
File metadata
- Download URL: zytools_fs-0.0.3.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4157f993c2ce8c0bea95adb24201fc0e58827976b686db5f832040b98c80ab94
|
|
| MD5 |
67ed6fc734e8810976965e88f7a82daf
|
|
| BLAKE2b-256 |
939b6abf56ebdc347463119ddf20f69fd1319600cb59d810b167ad6abcf6e16f
|
File details
Details for the file zytools_fs-0.0.3-py3-none-any.whl.
File metadata
- Download URL: zytools_fs-0.0.3-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
692611817ff00d9b8b4205c846d85217e252dc9f09300474d09d846858d0da64
|
|
| MD5 |
a9c63a05c2df73730cf5fabd201a8847
|
|
| BLAKE2b-256 |
9cf08edc980248acbdf0a469ef4811015def3fbb6516559a546e654215b16240
|