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.3.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

requests_html2-2.0.3-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

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