Skip to main content

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


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.6.4.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loki_cactus01-1.6.4-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file loki_cactus01-1.6.4.tar.gz.

File metadata

  • Download URL: loki_cactus01-1.6.4.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for loki_cactus01-1.6.4.tar.gz
Algorithm Hash digest
SHA256 a360962e31fb20933a9d099f1e101f0f2a4a4fcca2fdf6939357ca9115d7b179
MD5 5a9e5d362017af5680687e4c6e83cda3
BLAKE2b-256 c8392a55c42b476003a6f8530476d07a0a6f696537e5c5d97db8fa9d8c97b42a

See more details on using hashes here.

File details

Details for the file loki_cactus01-1.6.4-py3-none-any.whl.

File metadata

  • Download URL: loki_cactus01-1.6.4-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for loki_cactus01-1.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 721c6a54daebbebd881d7bc52681f8fe9eb5efc351554bcc0495d7d490d9eaf3
MD5 13f1e203f1f73f67b4c2f21fb33c360b
BLAKE2b-256 5b47ff8054bfdd33e9cc2b6b6f496a361c9a22b1b02d3ae3506e445d9c606338

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page