Ultimate Yelp Scraper avatar
Ultimate Yelp Scraper
Try for free

3 days trial then $30.00/month - No credit card required now

View all Actors
Ultimate Yelp Scraper

Ultimate Yelp Scraper

epctex/yelp-scraper
Try for free

3 days trial then $30.00/month - No credit card required now

Gather info on millions of businesses, events, and reviews. Scrape businesses and extract descriptions, images, menus, addresses, and all other properties.. Customize with search terms, filters, and mappings for limitless insights. Ultimate Yelp scraper you need. No limits! No limits!

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4client = ApifyClient("<YOUR_API_TOKEN>")
5
6# Prepare the Actor input
7run_input = {
8    "search": "grill",
9    "searchLocation": "Los Angeles",
10    "endPageForPhotos": 1,
11    "reviewSort": "relevance_desc",
12    "startUrls": [
13        "https://www.yelp.com/biz/maxs-restaurant-glendale-glendale-3",
14        "https://www.yelp.com/search?find_desc=max&find_loc=Los+Angeles%2C+CA",
15        "https://www.yelp.com/collection/qGqt9YpsLBCH5nruuVCK2A/Food",
16        "https://www.yelp.com/collections/user?userid=a_UbCGv_MTAHFs3P_zxUDA",
17        "https://www.yelp.com/events/la/browse?start_date=20230215",
18        "https://www.yelp.com/events/monterey-park-monterey-park-strong-star-ballroom-shooting-community-resources",
19    ],
20    "maxItems": 20,
21    "endPage": 1,
22    "startPageForReviews": 1,
23    "endPageForReviews": 1,
24    "extendOutputFunction": "($) => { return {} }",
25    "customMapFunction": "(object) => { return {...object} }",
26    "proxy": { "useApifyProxy": True },
27}
28
29# Run the Actor and wait for it to finish
30run = client.actor("epctex/yelp-scraper").call(run_input=run_input)
31
32# Fetch and print Actor results from the run's dataset (if there are any)
33print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
34for item in client.dataset(run["defaultDatasetId"]).iterate_items():
35    print(item)
36
37# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start
Developer
Maintained by Community
Actor metrics
  • 58 monthly users
  • 3 stars
  • 99.6% runs succeeded
  • 20 hours response time
  • Created in Feb 2023
  • Modified about 24 hours ago