Skip to main content

HTML Parsing for Humans

Project description

Python Version

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

requests_html2-2.0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file requests_html2-2.0.2.tar.gz.

File metadata

  • Download URL: requests_html2-2.0.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.9.0 CPython/3.10.9

File hashes

Hashes for requests_html2-2.0.2.tar.gz
Algorithm Hash digest
SHA256 b853cdf6a1ba1c2b93881daedb2bb055881eb0d0dca05e80c659ca8f1963bf42
MD5 ee8f37e18cb913446a4cb59bebd11725
BLAKE2b-256 abc98c1cbcf35b240c2a3f658ea4f1051a001515bc8a704c07ed980bfad82b81

See more details on using hashes here.

File details

Details for the file requests_html2-2.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for requests_html2-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 be926f1dfb0fe42d30cf59314ff8ac133e2eed861169bb22d4e80feaca7dde08
MD5 e6612926a08a50c7e6e274035ed2923a
BLAKE2b-256 66769886927b9b97098dcf7c0a03ce0bb77c7fa31c744fd82ae5d244e2c40141

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page