Skip to main content

Python Version

requests_html2

HTML Parsing for Humans 项目衍生自requests-html 用法参考expample

相比于requests-html有如下改进:

  • async 请求改用httpx
  • 浏览器渲染改用playwright
  • 元素操作优化,对于元素查找find()、xpath()的返回结果,参照linq增加筛选select()、where()

Install

pip install requests-html2

Quick Start

from requests_html2 import HTMLSession
with HTMLSession() as session:
    response = session.get('https://python.org/')
    print(response.html)

Metadata

Release files for requests_html2 2.0.3

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

Source distribution (sdist)

Source distribution for requests_html2 2.0.3
File Size Uploaded Provenance
requests_html2-2.0.3.tar.gz 4.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for requests_html2 2.0.3
File Interpreter ABI Platform
requests_html2-2.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / requests_html2-2.0.3.tar.gz

Download URL requests_html2-2.0.3.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7b56f068fa38b436daf7d914052597bd8680c6962ce2f95b594a1dba90c33d64
BLAKE2b-256 checksum
How to use checksums
7260d12ecc979b93db020e47ea2fd2b98dae1bbf56b981abad10588ba9375234
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.9.0 CPython/3.10.9

Release files / requests_html2-2.0.3-py3-none-any.whl

Download URL requests_html2-2.0.3-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ed949414773f6b76772eb885990a91fe5a90debc370b3f86a8574867d32c075
BLAKE2b-256 checksum
How to use checksums
bfd04680f3781504ecfe9a50d866000ac671c529d1ad454cf70a7529660c0583
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.9.0 CPython/3.10.9

Security for requests_html2 2.0.3

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.

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