A script for extracting data from Google Maps.
- Clone the repository:
git clone https://github.com/cenksen/google-maps-data-extraction.git cd google-maps-data-extraction
2.Install the required packages:
pip install -r requirements.txt
3.Install the package:
pip install .
You can run the script using the following command:
google-maps-extract --search "Restaurant" --location "Turkey" --total 100
- --search: The term you want to search for (default is "Restaurant").
- --location: The location you want to search in (default is "Turkey").
- --total: The total number of listings to extract (default is 100).
The extracted data will be saved in the /output directory in the following formats:
- CSV (result.csv)
- JSON (result.json)
- HTML (result.html)
Make sure you have Python 3.x installed, along with the following packages:
- pandas
- playwright
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request if you have suggestions or improvements.