I am trying to scrape using proxy from proxymesh.com
I am currently using the following code, It opens Chrome and creates a javascript alert to input username and password. I am currently doing is manually everytime I run a new instance of the script.
If someone could please help in automating it.
There could be 2 ways to do it,
Either somehow pass the username and password through Chrome Options
OR
Somehow make webdriver switch to javascript alert and enter the username and password there.
Here is my code so far,
from selenium import webdriver
chrome_option = webdriver.ChromeOptions()
chrome_option.add_argument("--proxy-server=http://us.proxymesh.com:31280")
b = webdriver.Chrome('chromedriver.exe',
chrome_options=chrome_option)
"Do Something"
Thanks in advance