Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99018

Python Selenium: Handling Webdriver exception

$
0
0

I am using Beautfilsoup for extracting app related information from Google Play Store. I am extracting app name, overall rating, no of people rated the app, and reviews posted by the reviewers. However, when I run the program it throws webdriver exception For instance: when program tries to retrieve information from this app ( 'https://play.google.com/store/apps/details?id=com.tudasoft.android.BeMakeup&hl=en&showAllReviews=true'), it throws error. Here is my code:

import bs4 as bs
from selenium import webdriver 

driver = webdriver.Chrome(path)
driver.get(url)
soup = bs.BeautifulSoup(driver.page_source, 'html.parser')

I got error on third line and the start of error is:

---------------------------------------------------------------------------
WebDriverException                        Traceback (most recent call last)
<ipython-input-270-4e8a1ef443f2> in <module>()
----> 1 soup = bs.BeautifulSoup(driver.page_source, 'html.parser')

and end of error is:

(Session info: chrome=79.0.3945.88)
  (Driver info: chromedriver=2.41.578706 (5f725d1b4f0a4acbf5259df887244095596231db),platform=Mac OS X 10.15.2 x86_64) 

I tried to used exception handling but didn't fix the issue Could anyone guide me how to overcome this kind of situation?


Viewing all articles
Browse latest Browse all 99018

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>