Report this

What is the reason for this report?

Timeout error when trying to get a https website with Python+Selenium

Posted on September 11, 2018

Hi. I am trying to use Python + Selenium to login to some website and parse information. I want this project to be hosted at a droplet. When I try to access the website in headless mode, Selenium drivers just load empty pages. Besides, I tried to use xvfb and pyvirtualdisplay to run non-headless mode. In this case, I got a Chrome error page stating that Chrome can’t connect to a network. I disabled ufw, removed all IPTABLES rules. Interesting fact is that when I use Firefox driver in headless mode, I get a Timeout error. On my PC I am able to run the same code using same settings and selenium drivers and access the website. So the question is: Are there any network restrictions for DigitalOcean droplets? Why am I running into Timeout errors? Thanks

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.