seleniumbase / SeleniumBase

📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.
https://seleniumbase.io
MIT License
4.46k stars 909 forks source link

Asking for the implementation of a method that gets the response status code #2781

Closed Eliobosdet closed 1 month ago

Eliobosdet commented 1 month ago

Hello, since i'm using SeleniumBase with the undetected chromedriver mode (UC mode) and my goal is to get the content of the sites that are protected with a captcha, i have some problems to understand whenever the request failed and more specifically why it failed. For this i can't just check the HTML content by doing: "sb.driver.get_page_source()". I know that selenium was born to be used as an web automator but if it would be possible to add this feature i would be super grateful. Thabk you in advance!

mdmintz commented 1 month ago

It sounds like you're looking for https://pypi.org/project/requests/.

(SeleniumBase does everything through a web browser.)