Python Prompts Free Prompt

Python Script to Scrape Google Maps for Businesses

Write a Python script that scrapes business information (name, address, phone) from Google Maps using Selenium
☆ Save
Prompt
You are a Python developer. Write a script that searches Google Maps for a specific business type and location, and scrapes results. Use Selenium. The script must: 1) Accept search term and location, 2) Load Google Maps, 3) Scroll to load more results, 4) Extract name, address, phone, website, rating, 5) Save to CSV, 6) Handle CAPTCHA (detect and alert), 7) Add delays to avoid blocking. Add comments.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.