omkarcloud / google-maps-scraper

👋 HOLA 👋 HOLA 👋 HOLA ! ENJOY OUR GOOGLE MAPS SCRAPER 🚀 TO EFFORTLESSLY EXTRACT DATA SUCH AS NAMES, ADDRESSES, PHONE NUMBERS, REVIEWS, WEBSITES, AND RATINGS FROM GOOGLE MAPS WITH EASE! 🤖
https://www.omkar.cloud/
MIT License
863 stars 211 forks source link

PRO emails #116

Closed jontje12 closed 5 months ago

jontje12 commented 5 months ago

Description

Hi! I bought the PRO version as I thought this is a great script to run to get emails from companies on Google Maps really quick. It says emails are supported but when running the program, no emails show up only the websites and name. How do I get the emails from the scanned sites and is it possible to have them all in a separate column in the Excel output? Otherwise the PRO version would not be useful to me.

Code to Reproduce (Paste main.py)

queries = [
   "web developers in bangalore"
]

fields = [
   Gmaps.Fields.NAME, 
   Gmaps.Fields.EMAILS, 
   Gmaps.Fields.LINK, 
]

Gmaps.places(queries, fields=fields)

Like in this file. Is this possible with this scraper? bedrijveninfo+email.xlsx

Zip and Upload the error_log/ Folder (Optional, if there are errors)

Chetan11-dev commented 5 months ago

You need to use the api integration.

Chetan11-dev commented 5 months ago

I deleted your comment because you should not leak the API keys. Also, please change the keys by going to https://rapidapi.com/developer/apps > Authorization. Regarding your question, you need to enclose the key in brackets. For example:

queries = [
    "aannemer in Delft"
]

fields = [
    Gmaps.Fields.NAME,
    Gmaps.Fields.EMAILS,
    Gmaps.Fields.LINK,
]

Gmaps.places(queries, max=5, key="API-KEY")
jontje12 commented 5 months ago

It works now, but the emails it gets are in one big line which means they are not easily exportable. Can I get just the emails in one column?

Chetan11-dev commented 5 months ago

Unfortunately, It is not supported as of now.