Install & Compatibility
Where this runs
tested against v0.5.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 1.450s · 68.7MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 4.9s · import 1.266s · 69MB
69MB installed
● package 69MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Session
✓ from requestium import Session
✗ from requestium.session import Session
Session is directly exposed at package level
Requestium
✓ from requestium import Requestium
Requestium class is a wrapper; use Session instead for most cases
Basic usage: create a unified session with both requests and selenium capabilities.
from requestium import Session
# Create a session with a browser (e.g., Chrome)
s = Session(driver_path='chromedriver', browser='chrome')
# Use requests interface
response = s.get('https://httpbin.org/get')
print(response.text)
# Use selenium to interact with JavaScript
try:
s.driver.get('https://httpbin.org/get')
element = s.driver.find_element('tag name', 'body')
print(element.text)
except Exception as e:
print(f'Browser not available: {e}')
finally:
s.close()
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'requestium'
Library not installed or Python version incompatible.
fixEnsure you are using Python >=3.10 and run: pip install requestium
AttributeError: 'Session' object has no attribute 'driver'
Trying to access selenium driver without initializing browser or after calling close().
fixInitialize Session with driver_path and browser parameters: s = Session(driver_path='chromedriver', browser='chrome')
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH
ChromeDriver not installed or not in PATH.
fixInstall ChromeDriver and add it to PATH, or provide the full path via driver_path parameter.
Upgrade
Version history
0.5.1latest on PyPI · released Jan 19, 2026
Audit
Dependencies
requestsrequiredCore HTTP library used for non-interactive requests
seleniumrequiredCore browser automation driver
parselrequiredUsed for parsing HTML/XML responses