Skip to main content
Selenium Requests HTML
=================
Extends Selenium WebDriver classes to include the [HTMLSession](http://html.python-requests.org/) from the [Requests-HTML](http://html.python-requests.org/) library, while doing all the needed cookie and request headers handling.

This hasn't really been tested and is not likely to get a whole lot of work done on it. My initial tests seemed to work for my use case. Most functionality worked with another webdriver, but the render function in Requests-HTML has a dependency that uses chromedriver and I have not yet looked into a way around it.

Most of the work already seemed to have been done, thanks to the organization and work already done in [Selenium Requests](https://github.com/cryzed/Selenium-Requests) and [Requests-HTML](http://html.python-requests.org/), as well as the original [Requests](http://python-requests.org/) library.

Usage
-----
```python
# Import any WebDriver class that you would usually import from
# selenium.webdriver from the seleniumrequestshtml module
from seleniumrequestshtml import Chrome
from selenium.webdriver.chrome.options import Options

# Set up the options for your webdriver
url = 'https://illsea.com'
options = Options()
options.add_argument("--headless")
webdriver = Chrome(chrome_options=options)

# webdriver.requests_session replaces regular HTMLSession() usage from requests-html
session = webdriver.requests_session
# then just do requests-HTML things
response = session.get(url)
images = response.html.find('img')

print(images)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

selenium-requests-html-1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

selenium_requests_html-1.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file selenium-requests-html-1.0.tar.gz.

File metadata

File hashes

Hashes for selenium-requests-html-1.0.tar.gz
Algorithm Hash digest
SHA256 341c4502a7898e9672f16e1d2f2fe29e3ed82585be86ebf98a81e1694682797c
MD5 7b3436574b3fc4aa20bd5e56cd885785
BLAKE2b-256 54bde17a2ab7429c81f970145e6b7e2d301d28d711bad2192b6acfba1571e56a

See more details on using hashes here.

File details

Details for the file selenium_requests_html-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for selenium_requests_html-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b3e5a5a077e3d3407d713a2014d6f4c81f89e3e44a37fbeb847194771324993
MD5 64246d0bd277b0b44934f213b142913d
BLAKE2b-256 e7f70b5e880d36048fdbfbfdb948704280365c85aeb0fec78322c34d7b1b37d8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0

Supported by

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