HTML Parsing for Humans
Project description
requests_html2
HTML Parsing for Humans 项目衍生自requests-html 用法请参考
example
以及requests-html文档
相比于requests-html有如下改进:
- 浏览器渲染相关操作更灵活
- 增加全局cookie、proxy设置
- 元素操作优化,对于元素查找
find()
、xpath()
的返回结果,参照linq增加筛选select()
、where()
Install
pip install requests-html2
Quick Start
from requests_html2 import HTMLSession
session = HTMLSession()
r = session.get('https://python.org/')
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-1.0.2.tar.gz
(11.3 kB
view details)
Built Distribution
File details
Details for the file requests_html2-1.0.2.tar.gz
.
File metadata
- Download URL: requests_html2-1.0.2.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.6.1 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 524c6b784d3da4904e92d83b8813de5e7300d9102b395e41a396fea4dcc4a4d8 |
|
MD5 | 1dc567d529c89208b337fecd4f0166f9 |
|
BLAKE2b-256 | 497c46a4897cf83f2f72416191323e69ac6a5d68f15879257a5fa93ba08434bc |
File details
Details for the file requests_html2-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: requests_html2-1.0.2-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.6.1 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f332e73e0af138b7cbe65713ef27ee6cf3ef5da6fa270b6fdeeb6336f811341 |
|
MD5 | 4ddb6e988516ad9df8d336e70506b0e8 |
|
BLAKE2b-256 | 88443e7d01f29006d986011f238178bc269527486ea929246c4db5783621877a |