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.1.tar.gz
(11.3 kB
view details)
Built Distribution
File details
Details for the file requests_html2-1.0.1.tar.gz
.
File metadata
- Download URL: requests_html2-1.0.1.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 | aeb44f7a2a47a1d888d3d3ffda9657e36ea186d5598144a86836ce470c7964e9 |
|
MD5 | 6b267618417ec1fb2f9498abd36b5127 |
|
BLAKE2b-256 | 1706a67f8b9f6df907b6d2d67132a0b20c44c70d25d71eb465116e2f3640f6dd |
File details
Details for the file requests_html2-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: requests_html2-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.2 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 | 0fe2d49ce1694d68beaff4c22ce1bbb7186b9be8ea948064dc897c0a4e246173 |
|
MD5 | 611ed9c708d607f105b928002aa665dc |
|
BLAKE2b-256 | b2b241e55d0d27bbba6258a2dd0ced28d630cba85f7be6fb69fe9e7e02ce0dbd |