{"id":26397658,"url":"https://github.com/andrepradika/scrape-google-maps","last_synced_at":"2025-03-17T12:18:34.440Z","repository":{"id":281287550,"uuid":"944822336","full_name":"andrepradika/scrape-google-maps","owner":"andrepradika","description":"🚀 Google Maps Business Scraper 🗺️📊  A Python-based tool that automates business data extraction from Google Maps using Playwright. Easily collect details like: 🏢 Business Name | 📍 Address | 🌐 Website | 📞 Phone | ⭐ Reviews | 📌 Coordinates  🔹 Saves data in Excel \u0026 CSV 🔹 Perfect for lead generation \u0026 market research 🔹 Supports bulk searches","archived":false,"fork":false,"pushed_at":"2025-03-08T03:26:10.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T04:20:42.744Z","etag":null,"topics":["automation","crawl","data-extraction","google-maps","scrape","web-scraping"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrepradika.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-08T03:18:24.000Z","updated_at":"2025-03-08T03:29:55.000Z","dependencies_parsed_at":"2025-03-08T04:20:46.850Z","dependency_job_id":"07579362-356d-44d9-8160-28cbf55233b4","html_url":"https://github.com/andrepradika/scrape-google-maps","commit_stats":null,"previous_names":["andrepradika/scrape-google-maps"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrepradika%2Fscrape-google-maps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrepradika%2Fscrape-google-maps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrepradika%2Fscrape-google-maps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrepradika%2Fscrape-google-maps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrepradika","download_url":"https://codeload.github.com/andrepradika/scrape-google-maps/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244031119,"owners_count":20386534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","crawl","data-extraction","google-maps","scrape","web-scraping"],"created_at":"2025-03-17T12:18:34.010Z","updated_at":"2025-03-17T12:18:34.435Z","avatar_url":"https://github.com/andrepradika.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Maps Business Scraper\n\n## Overview\nThis script scrapes business details from Google Maps using Playwright and stores the extracted data in Excel and CSV formats.\n\n## Features\n- Automates Google Maps search for businesses.\n- Extracts details such as name, address, website, phone number, reviews average, and coordinates.\n- Saves the data in both Excel and CSV formats.\n- Supports batch search via `input.txt`.\n\n## Requirements\n- Python 3.7+\n- Playwright\n- Pandas\n\n## Installation\n1. Clone the repository or download the script.\n2. Install dependencies:\n   ```bash\n   pip install playwright pandas\n   playwright install\n   ```\n\n## Usage\n### Run the script with a single search term:\n```bash\npython script.py -s \"Restaurants in New York\" -t 50\n```\n\n### Run the script with multiple search terms from `input.txt`:\n1. Create a file named `input.txt` and list search queries (one per line).\n2. Run the script without arguments:\n   ```bash\n   python script.py\n   ```\n\n### Arguments\n- `-s`, `--search`: Search query (e.g., \"Hotels in Los Angeles\").\n- `-t`, `--total`: Maximum number of results to scrape.\n\n## Output\nThe extracted data is saved in the `output` directory as:\n- `google_maps_data_\u003csearch_query\u003e.xlsx`\n- `google_maps_data_\u003csearch_query\u003e.csv`\n\n## Error Handling\n- If `-s` is not provided and `input.txt` is empty, an error message will be displayed.\n- If scraping fails for a business, the script continues to the next one.\n\n## License\nMIT License\n\n## Author\nandrepradika\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrepradika%2Fscrape-google-maps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrepradika%2Fscrape-google-maps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrepradika%2Fscrape-google-maps/lists"}