Skip to content

selenium-stealth integration with SB UC mode #2856

Answered by mdmintz
cluebeatz asked this question in Q&A
Discussion options

You must be logged in to vote

When UC Mode disconnects the driver from Chrome to evade detection, it also resets any settings made by selenium-stealth.

Also, it appears that using selenium-stealth to modify settings will get detected as a possible attempt to mask your fingerprint. (There is little that I can do there, as that is an external library.)

Your best bet to avoid detection is by just using regular SeleniumBase UC Mode:

from seleniumbase import SB

with SB(uc=True, incognito=True) as sb:
    sb.uc_open_with_reconnect("https://pixelscan.net/", 10)
    breakpoint()

If you still want to use selenium-stealth with SeleniumBase, there's documentation here: #2404

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants