-1

I need to open this website https://gem.gov.in/ with Python Selenium

I have tried to do it this way:

import undetected_chromedriver as uc
import time

driver = uc.Chrome(use_subprocess=True)
driver.get('https://gem.gov.in/view_contracts')
time.sleep(5)

But the site does not load at all. No errors. Just doesn't load

I also tried to use VPN. I use ExpressVPN. Choose India. But still no result

Question

How can I open this website?

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
TiBrains
  • 105
  • 8

1 Answers1

0

Using undetected_chromedriver it is still possible to access the site.

  • Code Block:

    import undetected_chromedriver as uc
    
    driver = uc.Chrome(executable_path='C:\\BrowserDrivers\\chromedriver.exe', use_subprocess=True)
    driver.maximize_window()
    driver.get('https://gem.gov.in/view_contracts')
    WebDriverWait(driver, 20).until(EC.visibility_of_element_located((By.XPATH, "//h2[text()='Advanced search for Contracts and Bid/RA']")))
    driver.save_screenshot("Advanced search for Contracts and Bid.png")
    
  • Browser Snapshot:

Advanced search for Contracts and Bid

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352