lbstudio Posted May 13, 2019 Posted May 13, 2019 (edited) Which webdriver is supported for selenium in python3.6 (Ricky)?e.g. Chrome, Firefox... Edited May 13, 2019 by lbstudio
Luigi123 Posted May 13, 2019 Posted May 13, 2019 Krydos can install this for you on your account. Escalating.
lbstudio Posted May 13, 2019 Author Posted May 13, 2019 cPanel username: lbstudio Main domain: lbstudio.heliohost.org The server: Ricky Version of python: 3.6 Request: install chrome webdriver reference: https://selenium-python.readthedocs.io/installation.html, http://chromedriver.chromium.org/downloads Thank you very much for help.
wolstech Posted May 13, 2019 Posted May 13, 2019 I don't think that's going to run here. From the looks of it, it requires Chrome itself be present, and just lets Python talk to Chrome. Our servers have no user interface, so a web browser can't run on them (not to mention the massive memory usage that we don't have the resources for, even if it could run). You can sort of emulate a browser session with something like cURL though, if your goal is to automate accessing a website.
lbstudio Posted May 13, 2019 Author Posted May 13, 2019 How is about phantomjs? It is more lightweight and command line only.Also, I have seen it in someone's post too. reference: https://www.helionet.org/index/topic/23214-scgi-bin-problem/?hl=selenium&do=findComment&comment=114553, https://pythonspot.com/selenium-phantomjs/ Thank you for your reply.
Krydos Posted May 14, 2019 Posted May 14, 2019 I'm not going to install phantomjs. What are you trying to do exactly? Why not use requests which is already installed? https://krydos1.heliohost.org/cgi-bin/modules36.py
lbstudio Posted May 14, 2019 Author Posted May 14, 2019 I am trying to scrape some data from a javascript-rendered website. I will find an alternative way to do it.Thank you for your help.
Krydos Posted May 14, 2019 Posted May 14, 2019 You really ought to check out requests. https://html.python-requests.org/
yashrs Posted May 16, 2019 Posted May 16, 2019 Yes, Krydos is right. Specifically check this part: https://html.python-requests.org/#javascript-support
Recommended Posts