#Authenticated proxies don't work with undetected_chromedriver

69 messages · Page 1 of 1 (latest)

timber hound
#

goofy ahh chat gippity code

#

did you know the "undetected" chromedrivers are still trivial to detect?

wild jacinth
#

oops lemme format it

wild jacinth
timber hound
#
from selenium import webdriver
PROXY = f"http://{proxy_username}:{proxy_password}@{proxy_address}:{proxy_port}"
chrome_options = WebDriver.ChromeOptions()
chrome_options.add_argument(f'--proxy-server="{PROXY}"')
chrome = webdriver.Chrome(chrome_options=chrome_options)
chrome.get("https://www.google.com")
timber hound
#

that works

#

selenium-wire is just weird fr

wild jacinth
#

it's a normal webdriver tho

timber hound
#

bro

wild jacinth
#

my code works, problem is I need it to work with undetected_chromedriver

timber hound
#

just use the options

#

those are the same

wild jacinth
#

wym

timber hound
#

selenium-wire doesn't hook into the ugly shitty undetected chromedriver

timber hound
wild jacinth
#

the undetected thing?

timber hound
#

the proxy 😭

wild jacinth
#

but chrome's gonna have that "this is an automated session" bs that's detected by even grandpa websites

timber hound
#

????

#

JUST USE YOUR UNDETECTED CHROMEDRIVER PACKAGE AND THEN ADD THE PROXY OPTION

wild jacinth
#

oh

timber hound
#

OR JUST SET useAutomationExtension TO FALSE

#

THAT FLAG IS JUST CONFIG TOO

wild jacinth
#

you mean like this?
options.add_argument(f'--proxy-server=https={proxy}')

timber hound
#

bro

timber hound
wild jacinth
#

I've tried that in my original code first thing and it ran with my normal IP pretty much ignoring the proxy thing

timber hound
#

try again

#

🥱

#

and post code of the new thing

wild jacinth
#

the code runs but my normal IP is used

timber hound
#

because that proxy is invalid

#

lol

wild jacinth
#

I redacted it

timber hound
#

--proxy-server=https={proxy_url}

wild jacinth
#

the proxy is working

timber hound
#

wtf is this supposed to be

#

https=

timber hound
wild jacinth
#

does this look alright @timber hound

#

if so, this still uses my normal IP

#

that's with undetected_chromedriver

timber hound
#

what does it do

wild jacinth
timber hound
wild jacinth
#

including the latest one that uses class

timber hound
#

nice

wild jacinth
#

I think chrome patches these with their new versions

timber hound
#

seems like that library is just wonky

#

or maybe you gotta use socks5 because muh we are stuck in 2005

#

are the proxies sock5

#

yes

wild jacinth
#

they mentioned
Augmented Security Pick from HTTP, or the swift and trustworthy SOCKS5 protocol for added security. on their website

wild jacinth
# timber hound yes

is my only option to manually find a third party download of the version? As far as I understand chrome doesn't give out older versions

wild jacinth
#

I mean older version of Google Chrome

#

not chromedrive

timber hound
#

idk go search the internet? lmao

#

If you're on Linux you'll probably be able to find older builds in repo archives

#

no idea for Windows or Mac

wild jacinth
wild jacinth
#

I'll risk malware for an older version lolol

timber hound
#

😂

wild jacinth
#

okay so I installed an older version of chrome and it seems to work