This scrapes company information from Google Maps using selenium and Python
- Install the latest chromedriver from: https://googlechromelabs.github.io/chrome-for-testing/
- Save it in the root directory.
Save all the keywords in the 'io_folder'
- use the right keywords to scrape the information
- the typical format for accurate results is:
company name, city, state
Run the file named main.py
The result will be saved in the io_folder
with the file named file.csv
- Un-comment this line
# options.add_argument('--headless')
- By default, there is 1 process. You can increase or decrease it as per your requirements.
To do this change this line:
num_processes = 1 # change this line
# """rest of the code"""
If connection is insecure, you likely need to update the ca.rt
certificate, which is in the security_certificate/
folder.
Steps:
- Download the certificate using this link
- Open chrome > settings > privacy and security
- Scroll down and click on 'Manage device certificates'
- Selected 'Trusted Root Certificates'
- Import the downloaded file and click finish.