mzubairtahir / Google-Maps-Scraper

Scraper that scrapes data from search results of google maps
GNU General Public License v3.0
11 stars 2 forks source link

WebDriver Error #7

Closed L4x74r closed 1 year ago

L4x74r commented 1 year ago

When I run the script I get the following error, either using python or python3:

working start...
Traceback (most recent call last):
  File "/home/Tools/Google-Maps-Scraper/googlemaps scraping/main.py", line 107, in <module>
    element=driver.find_element_by_xpath('//*[@id="QA0Szd"]/div/div/div[1]/div[2]/div/div[1]/div/div/div[3]/div[1]')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/Tools/Google-Maps-Scraper/googlemaps scraping/main.py", line 109, in <module>
    element=driver.find_element_by_xpath('//*[@id="QA0Szd"]/div/div/div[1]/div[2]/div/div[1]/div/div/div[3]/div[1]')  #again found
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath'
mzubairtahir commented 1 year ago

This repository is updated to below repository: https://github.com/Zubdata/Google-Maps-Scraper