Using selenium-wire with undetected chrimedriver

See original GitHub issue

Hi I was wondering if someone could help me understand how to use selenium-wire with the undetected chromedriver. More specifically the interceptor.

#! /usr/bin/env python3
import undetected_chromedriver.v2 as uc
from seleniumwire import webdriver
from seleniumwire.undetected_chromedriver.v2 import Chrome, ChromeOptions

def interceptor(request, response):
    print (request.url)

options = uc.ChromeOptions()
#options.add_argument('--headless')
driver = uc.Chrome(options=options)
driver.response_interceptor = interceptor
driver.get('https://github.com/wkeeling/selenium-wire')

Can anyone see where I am going wrong? Chris

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
wkeelingcommented, Aug 23, 2021

Fixed in 4.5.2

0reactions
Chris230291commented, Aug 22, 2021

Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get xhr requests using Selenium-wire and undetected ...
I'm following the code below, but couldn't get the xhr requests. Code from here. Anyway to fix this? import seleniumwire.undetected_chromedriver ...
Read more >
Undetected chromedriver v2 not working with selenium wire.
Although using undetected chromedriver with Selenium Wire provides some shielding against bot detection, it can't currently shield against ...
Read more >
selenium-wire - PyPI
Selenium Wire will integrate with undetected-chromedriver if it finds it in your environment. This library will transparently modify ChromeDriver to prevent it ...
Read more >
Using Smart Proxy Manager with Selenium Wire
Install ChromeDriver for Chrome. Download and install Zyte SmartProxy Selenium: $ python3 -m pip install zyte-smartproxy-selenium.
Read more >
attributeerror: 'webdriver' object has no attribute 'requests'
pip show selenium-wire Version: 5.1.0. $ pip show selenium Version: 4.5.0. $ pip show undetected-chromedriver Version: 3.0.6. Code to reproduce:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found