Using selenium-wire with undetected chrimedriver
See original GitHub issueHi 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:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in 4.5.2
Thanks.