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.0.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file requests_html2-2.0.0.tar.gz
.
File metadata
- Download URL: requests_html2-2.0.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.9.0 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 500b7baea61b2ce76fc102e40d96afd222ccb589a9e75810b49271303d16f873 |
|
MD5 | 362af4a3e84fac63abeac3e6e5baab42 |
|
BLAKE2b-256 | 453c7375f59517ed6f82b64ea602bde9376ae915946523d14e2d92968b621ba3 |
File details
Details for the file requests_html2-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: requests_html2-2.0.0-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 | 9c7ac2aa133d42c88c46a91209173c8f5da2c76212b8873574b98dfb009256ee |
|
MD5 | 5d1029db8bc8303fd30604c7330a71f9 |
|
BLAKE2b-256 | c0aad9b53466c796aeae87c064da0591cc82237e945c17d13d36fdd152e61b98 |