Merhaba dostum, eskiden selenium üzerinde yaptığım bir projede şu kodları buldum kendine göre ayarlayıp deneyebilirsin;
PROXY_Host = "91.121.44.145"
PROXY_PORT = str(randint(30000,59999))
fp = webdriver.FirefoxProfile('C:\\Users\\***\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\enmc1bv8.default-release')
print PROXY_PORT
print PROXY_Host
fp.set_preference('extensions.lastAppBuildId', "<apppID> -1")
fp.set_preference("network.proxy.type", 1)
fp.set_preference("network.proxy.http",PROXY_Host)
fp.set_preference("network.proxy.http_port",int(PROXY_PORT))
fp.set_preference("network.proxy.https",PROXY_Host)
fp.set_preference("network.proxy.https_port",int(PROXY_PORT))
fp.set_preference("network.proxy.ssl",PROXY_Host)
fp.set_preference("network.proxy.ssl_port",int(PROXY_PORT))
fp.set_preference("network.proxy.ftp",PROXY_Host)
fp.set_preference("network.proxy.ftp_port",int(PROXY_PORT))
fp.set_preference("network.proxy.socks",PROXY_Host)
fp.set_preference("network.proxy.socks_port",int(PROXY_PORT))
fp.update_preferences()
driver = webdriver.Firefox(firefox_profile=fp)
ilgin için çok teşekkür ederim dostum , kod üzerinden değil de txt üzerinden çekmesini istiyorum ben ama üzerinde biraz oynama yapayım belki kendime göre uyarlayabilirim.