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)

Metadata

Release files for selenium-requests-html 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for selenium-requests-html 1.0
File Size Uploaded
selenium-requests-html-1.0.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for selenium-requests-html 1.0
File Interpreter ABI Platform
selenium_requests_html-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.2 kB

Release files / selenium-requests-html-1.0.tar.gz

Download URL selenium-requests-html-1.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
341c4502a7898e9672f16e1d2f2fe29e3ed82585be86ebf98a81e1694682797c
BLAKE2b-256 checksum
How to use checksums
54bde17a2ab7429c81f970145e6b7e2d301d28d711bad2192b6acfba1571e56a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / selenium_requests_html-1.0-py3-none-any.whl

Download URL selenium_requests_html-1.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b3e5a5a077e3d3407d713a2014d6f4c81f89e3e44a37fbeb847194771324993
BLAKE2b-256 checksum
How to use checksums
e7f70b5e880d36048fdbfbfdb948704280365c85aeb0fec78322c34d7b1b37d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page