A simple Python script that uses Selenium to search McDonald’s U.S. restaurant locator by city/state and scrape all nearby locations.
- Prompts the user for a U.S. city and state (e.g.,
New York, NY
) - Navigates to the McDonald’s restaurant locator webpage
- Waits for the search box to appear, enters your query, and submits
- Automatically clicks “Load More” until all results are revealed
- Extracts street names and full addresses for each restaurant
- Prints a formatted list of locations to the console