Comments (5)
driver = uc.Chrome(version_main=124) should also do the trick, at least for the current version.
from undetected-chromedriver.
Add the following to the top of your script
from webdriver_manager.chrome import ChromeDriverManager
driver_executable_path = ChromeDriverManager().install()
make sure to install webdriver-manager
using pip
from undetected-chromedriver.
And pass the driver_executable_path
to the Chrome initiation
from undetected-chromedriver.
I had the same issue. Commented on this link. Feels related to this section.
I did the above instructions except version_main
.
driver_executable_path = ChromeDriverManager().install()
driver = uc.Chrome(options=options, executable_path=driver_executable_path)
But it gives me the same result.
from undetected-chromedriver.
This issue still occurs.
I discovered another problem: all my saved sessions are lost when this issue happens.
To prevent this, I first run the browser and log into the required websites, using a custom user_data_dir
.
Then, I close the browser and back up that user_data_dir
.
If I encounter this error unexpectedly and know my sessions will be lost, I delete the current user_data_dir
and restore it from the backup. This solution has worked for me.
from undetected-chromedriver.
Related Issues (20)
- Undetected chromedriver reported as trojan and deleted HOT 1
- Trying to replicate these steps for Java HOT 2
- Stealth configurations in Playwright
- detected as bot on https://www.browserscan.net/bot-detection HOT 3
- [nodriver] How to offset mouse? HOT 1
- Why is undetected_chromedriver automatically updated? HOT 2
- multithreading uc error HOT 3
- [nodriver] interacting with cloudflare iframe HOT 13
- [NODRIVER] Search element by element HOT 2
- "You cannot reuse the ChromeOptions object" error only when running in docker
- Chrome freezes after about 10 seconds of launching
- [NODRIVER] Bot detected in headless mode by user agent HOT 4
- undetected-chromedriver is being detected again thanks to chrome 128.0.6613.120
- DataDome detection HOT 1
- This is a Google Drive website, not bad, can be added to the project homepage
- Better Library?
- "TypeError: Binary Location Must be a String" on Linux Mint with basic code HOT 2
- [Nodriver] How can I use debugger_address option like undetected_chromedriver HOT 1
- [Nodriver] _prepare_headless bug HOT 2
- [Nodriver] find_all bug HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from undetected-chromedriver.