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
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.