fer0m
fer0m

Reputation: 244

Undetected_chromedriver + Seleniumwire together

I used to work with "seleniumwire" because I was comfortable getting "requests" from "driver". Now the situation has changed and I need to use "undetected_chromedriver", but as you know, this library does not support "requests" at the moment.

I know that "seleniumwire" also has an "undetected_chromedriver" option, but for some reason, it detect me as a bot (captcha).

Short example for that.

Bad:

from time import sleep
import seleniumwire.undetected_chromedriver.v2 as uc
if __name__ == '__main__':
    driver = uc.Chrome()
    driver.get("https://www.nowsecure.nl")
    sleep(5)
    print(driver.title)

Good:

from time import sleep
import undetected_chromedriver as uc
if __name__ == '__main__':
    driver = uc.Chrome()
    driver.get("https://www.nowsecure.nl")
    sleep(5)
    print(driver.title)

Is it possible to still get Requests using "undetected_chromedriver"?

Upvotes: 2

Views: 1775

Answers (0)

Related Questions