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.2.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for requests_html2-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be926f1dfb0fe42d30cf59314ff8ac133e2eed861169bb22d4e80feaca7dde08 |
|
MD5 | e6612926a08a50c7e6e274035ed2923a |
|
BLAKE2b-256 | 66769886927b9b97098dcf7c0a03ce0bb77c7fa31c744fd82ae5d244e2c40141 |