gosom / google-maps-scraper

scrape data data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place
MIT License
724 stars 93 forks source link

Input Query in Output CSV #45

Closed robertocommit closed 2 months ago

robertocommit commented 2 months ago

Hi There,

thanks so much for this gem.

I am wondering, is there an easy way to get the input query in the output CSV as additional column?

Have a great day ahead

gosom commented 2 months ago

@robertocommit the new release has a feature that can do what you asked.

in the input CSV add the following:

bar in london #!#bar in london

#!# is a separator.

Actually, this is to allow users to put a custom ID but you can use it as above.

(in the CSV there is a new column input_id which holds the value after #!#.

robertocommit commented 2 months ago

It looks great, thanks a ton @gosom