Replies: 2 comments 1 reply
-
+1 - I too am looking for this |
Beta Was this translation helpful? Give feedback.
1 reply
-
Code Example from botasaurus import *
def get_proxy(data):
if data["username"] == "mahendra-singh-dhoni":
return "http://proxy1.example.com:8000"
elif data["username"] == "virender-sehwag":
return "http://proxy2.example.com:8000"
return "http://proxy3.example.com:8000"
@browser(
data=[{"username": "mahendra-singh-dhoni",}, {"username": "virender-sehwag", }],
proxy=get_proxy,
)
def run_scraper(driver: AntiDetectDriver, data):
# Navigate to the Omkar Cloud website
driver.get("https://ipinfo.io/")
if __name__ == "__main__":
# Initiate the web scraping task
run_scraper() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I never used proxies before and still, i don't understand
this way is using only one proxy, what if I want to use new proxy for every page in the data?
Beta Was this translation helpful? Give feedback.
All reactions