mdmintz / seleniumbase-examples

Examples using SeleniumBase
MIT License
7 stars 1 forks source link

Unable to use Residential proxies. #5

Closed immortal-stem closed 2 months ago

immortal-stem commented 2 months ago

Am trying to use residential proxies with seleniumbase. They come in the form of hostname:port:username:password e.g. proxy.iproyal.com:8082:usernameString:0qMspCfWtAFErhA9_country-us_session-SyrZinpW_lifetime-1h. Please guide me on how to use this. I am using the SB format.

mdmintz commented 2 months ago

You can add proxy="USER:PASS@SERVER:PORT" or proxy="SERVER:PORT". Eg:

from seleniumbase import SB

with SB(proxy="USER:PASS@SERVER:PORT") as sb:
    #   ...
immortal-stem commented 2 months ago

Thanks so much @mdmintz, it works and I appreciate you!