Skip to main content

No project description provided

Project description

AkariBot WebRender

此为小可的 WebRender 模块,主要用于渲染网页内容及浏览器代理请求等。

此模块已预置在小可的项目中,若你需要使用 WebRender 有关的内容,请在项目的 config/webrender.toml 处将 enable_web_render 设置为 true,然后使用 playwright install --with-deps chromium (或 firefox)安装浏览器及相关依赖即可(或是在配置中手动指定 browser_executable_path 路径以手动选择本地的浏览器)。

为了最大程度的网页兼容性,本项目仅支持 Chromium 内核和 Firefox 浏览器。

若你需要使用其进行二次开发,请使用你的包管理器安装 akari-bot-webrender 包,然后在你的代码中导入 akari_bot_webrender 模块。

或是作为远端部署的 WebRender 服务使用。你可以通过本项目根目录的 run_server.py 来启动一个 Web 服务器,在其它项目引入 akari_bot_webrender 后,配置 remote_webrender_url 指向该服务器地址即可。

若指定了 remote_webrender_url,则模块将在本地渲染失败时自动使用远程的 WebRender 服务进行渲染(或是配置 remote_only 项以强制指定使用远端渲染)。

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

akari_bot_webrender-0.3.8.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

akari_bot_webrender-0.3.8-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file akari_bot_webrender-0.3.8.tar.gz.

File metadata

  • Download URL: akari_bot_webrender-0.3.8.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for akari_bot_webrender-0.3.8.tar.gz
Algorithm Hash digest
SHA256 afd84b1208a462ac1f0f11849f70b27d1b5021e6faecc38220d11ef891a1be82
MD5 f793f0271115e8c9eb379b74575acce5
BLAKE2b-256 f945e2e75e31d36c5298cc3c7a998042a4c664a4cc84ca012ff17bb2f744f4ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for akari_bot_webrender-0.3.8.tar.gz:

Publisher: python-publish.yml on Teahouse-Studios/akari-bot-webrender

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file akari_bot_webrender-0.3.8-py3-none-any.whl.

File metadata

File hashes

Hashes for akari_bot_webrender-0.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 392b8621223b2392de05902be129a0a691d0b709c972cd4b6c28e9e413715e66
MD5 3e01d00e916e490db990bc9d23ca588c
BLAKE2b-256 7e7366a04b85d6e3ac7d85f4a5f550bb76e2e87a26c3a9e487d105116137d8a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for akari_bot_webrender-0.3.8-py3-none-any.whl:

Publisher: python-publish.yml on Teahouse-Studios/akari-bot-webrender

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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