[Python] Selenium doesn't open website with provided url (url is valid)

Discussão em 'Python' iniciado por Stack, Abril 12, 2025.

  1. Stack

    Stack Membro Participativo

    I try to open whois EURID website with no luck. Selenium opens browser (tried with Chrome and FF), but when I try to open particular URL (http://whois.eurid.eu/):

    nothing opens, I got blank page only.

    I have driver set by this function:

    def set_driver() -> WebDriver:
    service = Service()
    if cfg["browser"]["browser_name"].strip().lower() == "firefox":
    options = webdriver.FirefoxOptions()
    driver = webdriver.Firefox(service=service, options=options)
    elif cfg["browser"]["browser_name"].strip().lower() == "edge":
    options = webdriver.EdgeOptions()
    driver = webdriver.Edge(service=service, options=options)
    else:
    options = webdriver.ChromeOptions()
    driver = webdriver.Chrome(service=service, options=options)
    return driver



    Using driver (set above) I try to open webiste and scrape some data (information about domain):

    domain_name = "ddddddd.eu" # any name ending with '.eu'

    URL = f"https://whois.eurid.eu/en/search/?domain={domain_name}"

    drv = set_driver()
    drv.get(URL)
    time.sleep(5)



    I think this website is currently somehow protected (???), as I have had no problems with opening it before.

    Thanks for advice!

    Continue reading...

Compartilhe esta Página