requests-html for human

requests-html for human

Guide

install

pip install requests-html

usage

1
2
3
4
5
>>> from requests_html import HTMLSession
>>> session = HTMLSession()
>>> r = session.get('https://python.org/')
>>> r.text
>>> r.html.find('title', first=True).text

Reference

History

  • 20191018: created.
坚持技术分享,您的支持将鼓励我继续创作!