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.3.tar.gz
(11.3 kB
view details)
Built Distribution
File details
Details for the file requests_html2-1.0.3.tar.gz
.
File metadata
- Download URL: requests_html2-1.0.3.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 | 11a10717fd726690abb014c5493df770f80e0a35e829f66c2d6b19d3aea2c1f4 |
|
MD5 | 932cfbfe3a4d709cb13ec7b957bf87a3 |
|
BLAKE2b-256 | 592abe1a71e6f6425e39f8626f661525facbe62b34faa113daab1b29ad8013a4 |
File details
Details for the file requests_html2-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: requests_html2-1.0.3-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 | ea8a2e0dd01c1d2281c43528ffdcc2e4dddd272a93fee8ddaf175a2dcda093ae |
|
MD5 | 0880e7dd499901bcc06d44a246263057 |
|
BLAKE2b-256 | 2c7869f578e1a0a9793ee9f5ca9c7424f857c1cc5e59f705c98e6c0e41ca1c80 |