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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

loki_cactus01-1.7.2-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: loki_cactus01-1.7.2-py3-none-any.whl
  • Upload date:
  • Size: 23.1 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.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 adc967009af71ce2727684021bc0219c5fdbf8b2e9787593ba74d614652423d4
MD5 085aa8f17372d14f03f8a3c46eafbf8f
BLAKE2b-256 a29370e8c08f5ca90fb1c3902ed2d8e768615a342ef75dc06c6f73e904b8e86b

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