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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!