lbstudio Posted May 13, 2019 Share 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 Link to comment Share on other sites More sharing options...
Luigi123 Posted May 13, 2019 Share Posted May 13, 2019 Krydos can install this for you on your account. Escalating. Link to comment Share on other sites More sharing options...
lbstudio Posted May 13, 2019 Author Share 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. Link to comment Share on other sites More sharing options...
wolstech Posted May 13, 2019 Share 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. Link to comment Share on other sites More sharing options...
lbstudio Posted May 13, 2019 Author Share 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. Link to comment Share on other sites More sharing options...
Krydos Posted May 14, 2019 Share 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 Link to comment Share on other sites More sharing options...
lbstudio Posted May 14, 2019 Author Share 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. Link to comment Share on other sites More sharing options...
Krydos Posted May 14, 2019 Share Posted May 14, 2019 You really ought to check out requests. https://html.python-requests.org/ Link to comment Share on other sites More sharing options...
yashrs Posted May 16, 2019 Share Posted May 16, 2019 Yes, Krydos is right. Specifically check this part: https://html.python-requests.org/#javascript-support Link to comment Share on other sites More sharing options...
Recommended Posts