Utilities and scrapers toolkit
Project description
loki
一个可被其它项目复用的工具库(同时包含部分 scraper)。
作为依赖安装
本地源码引用(推荐开发阶段)
pip install -e .
启用 scraper 相关依赖
pip install -e ".[scrapers]"
Playwright 还需要安装浏览器(首次一次性):
python -m playwright install chromium
在其它项目里引用
from loki.scrapers import RequestMixin, Method
from loki.scrapers.javdb import JavDB
构建 wheel(用于分发/离线安装)
python -m build
pip install dist/loki-*.whl
说明
- 依赖在
pyproject.toml的[project.dependencies]/[project.optional-dependencies]中维护。 - 命令行入口
loki指向loki.__main__:main(目前仅做日志初始化)。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
loki_cactus01-1.8.6.tar.gz
(22.8 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 loki_cactus01-1.8.6.tar.gz.
File metadata
- Download URL: loki_cactus01-1.8.6.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9496b1cc6c7b01e9213eb6993a1c2ef9f84e0910b9dd5d118b9b8a0dd3567b5
|
|
| MD5 |
eea3369648ff6d54ea00b4a2df2fbc3b
|
|
| BLAKE2b-256 |
48f4070b59131f9231cd141cccff828ba60f24d7e1ff715b3a036ad3cf65c9ca
|
File details
Details for the file loki_cactus01-1.8.6-py3-none-any.whl.
File metadata
- Download URL: loki_cactus01-1.8.6-py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bf29229e7068c5412a69356a812e15c8b3a86c0dfcd95593078c17d2bd4c2f1
|
|
| MD5 |
d0c19549e4047f71dab59e4420cf6993
|
|
| BLAKE2b-256 |
114ec1667519362661fc9baca2e5b886c5dafada903da86e27ac9fbc261fa6e8
|