Web Page not opening while web scraping through python selenium - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: Web Page not opening while web scraping through python selenium (/thread-14196.html) |
Web Page not opening while web scraping through python selenium - sumandas89 - Nov-19-2018 I am writing codes to do web crawling in windows environment, and using google chrome and mozila firefox as browser. For google chrome I downloaded latest chromedriver and the latest geckodriver for firefox and added path of these drivers in the environment variables. A sample code is given below which I am executing for google chrome - from selenium import webdriver driver = webdriver.Chrome("C:\\ChromeDriver\\chromedriver.exe") driver.get("https://www.google.com")In this case the web browser is opening but the google page didn't opened and the whole page remains white after staying like this for certain times the below error is coming. The image of the browser is attached. The below code is for the firefox -from selenium import webdriver driver = webdriver.Firefox("C:\\ChromeDriver\\") driver.get("https://www.google.com")I am not getting any output after executing the code, even the browser is not also opening. After some time this error message has been thrown. Please let me know the exact reason, why I am getting these error?
RE: Web Page not opening while web scraping through python selenium - Larz60+ - Nov-19-2018 see: https://python-forum.io/Thread-Web-scraping-part-2 RE: Web Page not opening while web scraping through python selenium - metulburr - Nov-19-2018 Quote:driver = webdriver.Chrome("C:\\ChromeDriver\\chromedriver.exe")what is the permissions of C:\ChromeDirver? Quote:As for firefox it appears you are just passing the same directory to it. Where is geckodriver?driver = webdriver.Firefox("C:\\ChromeDriver\\") RE: Web Page not opening while web scraping through python selenium - sumandas89 - Nov-19-2018 (Nov-19-2018, 12:23 PM)metulburr Wrote:Quote:what is the permissions of C:\ChromeDirver? The directory ChromeDriver has full permission. Quote:As for firefox it appears you are just passing the same directory to it. Where is geckodriver?geckodriver and chromedriver is in the same directory C:\ChromeDriver RE: Web Page not opening while web scraping through python selenium - snippsat - Nov-19-2018 (Nov-19-2018, 10:57 AM)sumandas89 Wrote: Failed to read HKLM\SOFTWARE\Policies\Google\Chrome\MachineLevelUserCloudPolicyEnrollmentToken:It complains that you don't have this key is register. I check i don't have this key,but work fine without for me. Try add key to register follow this. Also basic stuff if you make a folder ChromeDriver with chrome and gecko driver in it,you will need to add that path(C:\ChromeDriver) to Windows Path(Restart Pc).How to Edit/Add Your System PATH |