videocamWeb Data Extraction Summit - September 30th, 2021.
Join some of the greatest minds in web scraping to educate, inspire, and innovate.
Register for free!
Start a new topic

Python Selenium Chrome Requests & Proxy

Hello friends, I need to use Chrome selenium proxy for a project, but I didn't know how to include all information such as selenium proxy browser ip address etc


import requests

response = requests.get(
http://ornekproxysayfa.com/get”,
proxies={
“http”: “http://apikodum**:@proxy.site.com:8000/”,
},
)
print(response.text)


{
“args”: {},
“headers”: {
“Accept”: “/”,
“Accept-Encoding”: “gzip, deflate”,
“Host”: “sayfa.org”,
“User-Agent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063”
},
“origin”: “109.175.207.150, 109.175.207.150”,
“url”: “https://sayfa.org/get
}


--------------my python selenium code----------------


browser = webdriver.Chrome()
time.sleep(1)
browser.get(‘https://ip-adresim.net/’)

1 Comment

Hi,


Could you please refer to this https://support.scrapinghub.com/a/solutions/articles/22000216231 and let me know if that helps. Thanks!

Login to post a comment