I'm trying to access : temp-mail.org they remove to possibility of extracting the email using an API, so i was trying to extract it using python (selenium)
I'm using the following code to avoid detection by cloudflare, but still, sometimes I got caught.
from selenium.webdriver.common.proxy import Proxy, ProxyType
from streamlit import caching
from selenium import webdriver
option = webdriver.ChromeOptions()
option.add_argument("user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.75 Mobile/14E5239e Safari/602.1")
driver = webdriver.Chrome(os.getcwd()+"chromedriver.exe")
PROXY =[
{"host": "104.248.123.76", "port":18080},
{"host": "136.144.54.195", "port":80}
]
index = int(uniform(0, len(PROXY)))
PROXY = PROXY[index]["host"]+":"+str(PROXY[index]["port"])
webdriver.DesiredCapabilities.CHROME['proxy']={
"httpProxy":PROXY,
"ftpProxy":PROXY,
"sslProxy":PROXY,
"proxyType":"MANUAL",
}
caching.clear_cache()
driver.delete_all_cookies()
driver.get('website')
Should I need to change the website from which I'm grabbing the proxies or is there any other solutions!!