{"id":24519,"library":"requestium","title":"Requestium","description":"Requestium is a Python library that merges the power of Requests (for HTTP) with Selenium (for browser automation) into a single unified session object. Version 0.5.1 requires Python >=3.10. The project appears to be in maintenance mode with no recent updates.","status":"maintenance","version":"0.5.1","language":"python","source_language":"en","source_url":"https://github.com/tryolabs/requestium","tags":["requests","selenium","web-scraping","browser-automation"],"install":[{"cmd":"pip install requestium","lang":"bash","label":"Latest stable"}],"dependencies":[{"reason":"Core HTTP library used for non-interactive requests","package":"requests","optional":false},{"reason":"Core browser automation driver","package":"selenium","optional":false},{"reason":"Used for parsing HTML/XML responses","package":"parsel","optional":false}],"imports":[{"note":"Session is directly exposed at package level","wrong":"from requestium.session import Session","symbol":"Session","correct":"from requestium import Session"},{"note":"Requestium class is a wrapper; use Session instead for most cases","wrong":"","symbol":"Requestium","correct":"from requestium import Requestium"}],"quickstart":{"code":"from requestium import Session\n\n# Create a session with a browser (e.g., Chrome)\ns = Session(driver_path='chromedriver', browser='chrome')\n\n# Use requests interface\nresponse = s.get('https://httpbin.org/get')\nprint(response.text)\n\n# Use selenium to interact with JavaScript\ntry:\n    s.driver.get('https://httpbin.org/get')\n    element = s.driver.find_element('tag name', 'body')\n    print(element.text)\nexcept Exception as e:\n    print(f'Browser not available: {e}')\nfinally:\n    s.close()","lang":"python","description":"Basic usage: create a unified session with both requests and selenium capabilities."},"warnings":[{"fix":"Upgrade Python to 3.10+ or use an older version of requestium if available.","message":"Requires Python >=3.10. Older versions do not support this library.","severity":"breaking","affected_versions":"<=0.5.0"},{"fix":"Consider using alternatives like Requests+BeautifulSoup or Selenium Wire if you need active maintenance.","message":"The library may not be actively maintained; issues and PRs may not be addressed.","severity":"gotcha","affected_versions":"all"},{"fix":"Use Selenium 4 compatible syntax: driver.find_element('tag name', 'body') instead of driver.find_element_by_tag_name('body').","message":"Selenium 4 changed find_element API; old syntax may break.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure you are using Python >=3.10 and run: pip install requestium","cause":"Library not installed or Python version incompatible.","error":"ModuleNotFoundError: No module named 'requestium'"},{"fix":"Initialize Session with driver_path and browser parameters: s = Session(driver_path='chromedriver', browser='chrome')","cause":"Trying to access selenium driver without initializing browser or after calling close().","error":"AttributeError: 'Session' object has no attribute 'driver'"},{"fix":"Install ChromeDriver and add it to PATH, or provide the full path via driver_path parameter.","cause":"ChromeDriver not installed or not in PATH.","error":"selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}