By 12bogdan03
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!
Hey friend!
There are no network restrictions that we deploy on our side that would cause this, but I’m afraid I don’t know what is causing it for you. It could be that the website in question is blocking datacenter IPs, or even just our IP space.
Jarland
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.