Skip to main content

splashclient

简单的splash客户端

安装

pip install splashclient

快速入门

  • 初始化客户端,配置代理可以传递{"protocol": "http", "ip": "IP地址", "port": 端口}到参数default_proxy
splash_url = "你的splash服务端地址,例如:http://IP:8050"
client = SplashClient(splash_url, default_proxy=None, default_wait=0.1, default_time=30, default_header={
    "User-Agent": "abc"
})
  • 获取一个渲染后的网页html
html = client.render("http://blog.yubangweb.com")
print(html)
  • 获取页面截图
client.png("http://blog.yubangweb.com")
with open("1.png", "wb") as fp:
    fp.write(data)

Metadata

Release files for splashclient 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for splashclient 0.0.1
File Size Uploaded Provenance Actions
splashclient-0.0.1.tar.gz 3.1 kB Without provenance Details for splashclient-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for splashclient 0.0.1
File Interpreter ABI Platform Actions
splashclient-0.0.1-py3.6.egg Legacy Egg format - - Details for splashclient-0.0.1-py3.6.egg

Total release size: 9.3 kB

Release files / splashclient-0.0.1.tar.gz

Download URL splashclient-0.0.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3f52e3ffacd62456f8a98ef7656ec47e09dd0ab9e87918c1e814f4a0d9d2a30d
BLAKE2b-256 checksum
How to use checksums
474eb7f53c51f43f1d57843c19e78b81e4d5de6c8dd49622742a3ad91102b17c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.1

Release files / splashclient-0.0.1-py3.6.egg

Download URL splashclient-0.0.1-py3.6.egg
Size 6.2 kB
Tags Egg
SHA-256 checksum
How to use checksums
f74f17ab02215214742ef3080aab5b9632194f3e24b76af342d15a3732d262e2
BLAKE2b-256 checksum
How to use checksums
e770baca7db43cff5187f1c0a1d75de156bb46369a0ca1f72174f0a88a3e6231
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.1

Security for splashclient 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page