makiisthenes / TiktokAutoUploader

Automatically Edits Videos and Uploads to Tiktok with CLI, Requests not Selenium.
GNU General Public License v3.0
605 stars 135 forks source link

how do i add a proxy? #66

Open YoussefBechara opened 8 months ago

webees commented 7 months ago

https://github.com/ultrafunkamsterdam/undetected-chromedriver

import undetected_chromedriver as uc

# specify chromedriver version to download and patch
uc.TARGET_VERSION = 78

# or specify your own chromedriver binary (why you would need this, i don't know)

uc.install(
    executable_path = 'c:/users/user1/chromedriver.exe' ,
    )

opts = uc.ChromeOptions()
opts.add_argument( f'--proxy-server=socks5://127.0.0.1:9050' )
driver = uc.Chrome( options = opts )
driver.get( 'https://distilnetworks.com' )