HTML Parsing for Humans
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
requests_html2-2.0.3.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file requests_html2-2.0.3.tar.gz.
File metadata
- Download URL: requests_html2-2.0.3.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.9.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b56f068fa38b436daf7d914052597bd8680c6962ce2f95b594a1dba90c33d64
|
|
| MD5 |
6a2bd2da4e4fe575a69c7cc2b07945dc
|
|
| BLAKE2b-256 |
7260d12ecc979b93db020e47ea2fd2b98dae1bbf56b981abad10588ba9375234
|
File details
Details for the file requests_html2-2.0.3-py3-none-any.whl.
File metadata
- Download URL: requests_html2-2.0.3-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.9.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ed949414773f6b76772eb885990a91fe5a90debc370b3f86a8574867d32c075
|
|
| MD5 |
11c811cf3745c82a810dfd321d8eae29
|
|
| BLAKE2b-256 |
bfd04680f3781504ecfe9a50d866000ac671c529d1ad454cf70a7529660c0583
|