specrom

specrom / Scrape_Yelp_Restaurant_Listings / 0.2.0

Scrape_Yelp_Restaurant_Listings

50 Credit Royalty
Web scrape restaurant listings from Yelp
Language
Python 3.x
Metrics
API Calls - 7 Avg call duration - N/A
Permissions
The Algorithm Platform License is the set of terms that are stated in the Software License section of the Algorithmia Application Developer and API License Agreement. It is intended to allow users to reserve as many rights as possible without limiting Algorithmia's ability to run it as a service. Learn More
This is necessary for algorithms that rely on external services, however it also implies that this algorithm is able to send your input data outside of the Algorithmia platform.
This allows an algorithm to compose sophisticated functionality using other algorithms as building blocks , however it also carries the potential of incurring additional royalty and usage costs from any algorithm that it calls .

Run an Example

Input
Output
[
  {
    "address": "249 Ivan Allen Jr Blvd ",
    "business_name": "Atlanta Breakfast Club",
    "categories": "Southern,Breakfast & Brunch,American (Traditional)",
    "price_range": "$$",
    "rank": 1,
    "rating": 4.5,
    "review_count": 3449,
    "url": "https://www.yelp.com/biz/atlanta-breakfast-club-atlanta?osq=Restaurants"
  },
  {
    "address": "265 Peachtree St NE Downtown",
    "business_name": "Sway",
    "categories": "Southern",
    "price_range": "$$",
    "rank": 2,
    "rating": 4,
    "review_count": 446,
    "url": "https://www.yelp.com/biz/sway-atlanta?osq=Restaurants"
  },
  {
    "address": " Downtown",
    "business_name": "Adobo",
    "categories": "Filipino,Pop-Up Restaurants",
    "price_range": "",
    "rank": 3,
    "rating": 4.5,
    "review_count": 3,
    "url": "https://www.yelp.com/biz/adobo-atlanta?osq=Restaurants"
  },
  {
    "address": "123 Luckie St NW Downtown",
    "business_name": "The Food Shoppe",
    "categories": "Cajun/Creole,Breakfast & Brunch",
    "price_range": "$$",
    "rank": 4,
    "rating": 4.5,
    "review_count": 703,
    "url": "https://www.yelp.com/biz/the-food-shoppe-atlanta?osq=Restaurants"
  },
  {
    "address": "510 Piedmont Ave NE Downtown",
    "business_name": "Poor Calvin’s",
    "categories": "Asian Fusion,Southern,Comfort Food",
    "price_range": "$$",
    "rank": 5,
    "rating": 4.5,
    "review_count": 3224,
    "url": "https://www.yelp.com/biz/poor-calvins-atlanta-15?osq=Restaurants"
  },
  {
    "address": "225 Peachtree St NE Downtown",
    "business_name": "Aviva by Kameel",
    "categories": "Mediterranean,Middle Eastern",
    "price_range": "$$",
    "rank": 6,
    "rating": 5,
    "review_count": 1504,
    "url": "https://www.yelp.com/biz/aviva-by-kameel-atlanta-2?osq=Restaurants"
  },
  {
    "address": "229 Peachtree St NE Downtown",
    "business_name": "Metro Café Diner",
    "categories": "Diners,Breakfast & Brunch,Bars",
    "price_range": "$$",
    "rank": 7,
    "rating": 3,
    "review_count": 494,
    "url": "https://www.yelp.com/biz/metro-caf%C3%A9-diner-atlanta-2?osq=Restaurants"
  },
  {
    "address": "231 W Peachtree St NE Downtown",
    "business_name": "Gus’s World Famous Fried Chicken",
    "categories": "Southern,Chicken Shop,Comfort Food",
    "price_range": "$$",
    "rank": 8,
    "rating": 4,
    "review_count": 1284,
    "url": "https://www.yelp.com/biz/guss-world-famous-fried-chicken-atlanta?osq=Restaurants"
  },
  {
    "address": "60 Andrew Young International Blvd NE Downtown",
    "business_name": "Cuts Steakhouse",
    "categories": "Steakhouses,American (Traditional)",
    "price_range": "$$$",
    "rank": 9,
    "rating": 3.5,
    "review_count": 470,
    "url": "https://www.yelp.com/biz/cuts-steakhouse-atlanta?osq=Restaurants"
  },
  {
    "address": "25 Andrew Young International Blvd NW Downtown",
    "business_name": "Pittypat’s Porch Restaurant",
    "categories": "Southern,Soul Food",
    "price_range": "$$",
    "rank": 10,
    "rating": 3.5,
    "review_count": 753,
    "url": "https://www.yelp.com/biz/pittypats-porch-restaurant-atlanta?osq=Restaurants"
  },
  {
    "address": "200 Peachtree St NE Downtown",
    "business_name": "Sweet Georgia’s Juke Joint",
    "categories": "Southern,Music Venues",
    "price_range": "$$",
    "rank": 11,
    "rating": 3.5,
    "review_count": 1258,
    "url": "https://www.yelp.com/biz/sweet-georgias-juke-joint-atlanta?osq=Restaurants"
  },
  {
    "address": "660 Irwin St NE Old Fourth Ward",
    "business_name": "Glide Pizza",
    "categories": "Pizza",
    "price_range": "",
    "rank": 12,
    "rating": 5,
    "review_count": 7,
    "url": "https://www.yelp.com/biz/glide-pizza-atlanta?osq=Restaurants"
  },
  {
    "address": "300 Marietta St NW Downtown",
    "business_name": "Der Biergarten",
    "categories": "German,Beer Gardens",
    "price_range": "$$",
    "rank": 13,
    "rating": 4,
    "review_count": 631,
    "url": "https://www.yelp.com/biz/der-biergarten-atlanta?osq=Restaurants"
  },
  {
    "address": "133 Luckie St Downtown",
    "business_name": "Ted’s Montana Grill - Luckie Street",
    "categories": "Burgers,American (Traditional),Steakhouses",
    "price_range": "$$",
    "rank": 14,
    "rating": 4,
    "review_count": 836,
    "url": "https://www.yelp.com/biz/teds-montana-grill-luckie-street-atlanta?osq=Restaurants"
  },
  {
    "address": "241 Forsyth St Downtown",
    "business_name": "Magic City Kitchen",
    "categories": "Soul Food,Seafood,American (Traditional)",
    "price_range": "",
    "rank": 15,
    "rating": 4.5,
    "review_count": 3,
    "url": "https://www.yelp.com/biz/magic-city-kitchen-atlanta?osq=Restaurants"
  },
  {
    "address": "150 Walton St Downtown",
    "business_name": "Park Bar",
    "categories": "Bars,Burgers",
    "price_range": "$$",
    "rank": 16,
    "rating": 4,
    "review_count": 494,
    "url": "https://www.yelp.com/biz/park-bar-atlanta?osq=Restaurants"
  },
  {
    "address": "64 Peachtree St NW Downtown",
    "business_name": "Blossom Tree",
    "categories": "Korean",
    "price_range": "$$",
    "rank": 17,
    "rating": 4.5,
    "review_count": 337,
    "url": "https://www.yelp.com/biz/blossom-tree-atlanta?osq=Restaurants"
  },
  {
    "address": "191 Peachtree St NE Downtown",
    "business_name": "Alma Cocina - Downtown",
    "categories": "Latin American,Mexican,Bars",
    "price_range": "$$",
    "rank": 18,
    "rating": 4,
    "review_count": 1126,
    "url": "https://www.yelp.com/biz/alma-cocina-downtown-atlanta?osq=Restaurants"
  },
  {
    "address": "240 Peachtree St NW Downtown",
    "business_name": "Ray’s in the City",
    "categories": "Seafood,American (Traditional),Sushi Bars",
    "price_range": "$$$",
    "rank": 19,
    "rating": 4,
    "review_count": 808,
    "url": "https://www.yelp.com/biz/rays-in-the-city-atlanta?osq=Restaurants"
  },
  {
    "address": "320 Peachtree St NE Downtown",
    "business_name": "Max Lager’s Wood-Fired Grill & Brewery",
    "categories": "American (Traditional),Brewpubs,Sports Bars",
    "price_range": "$$",
    "rank": 20,
    "rating": 3.5,
    "review_count": 880,
    "url": "https://www.yelp.com/biz/max-lagers-wood-fired-grill-and-brewery-atlanta?osq=Restaurants"
  },
  {
    "address": "300 Marietta St NW Downtown",
    "business_name": "Twin Smokers BBQ",
    "categories": "Barbeque",
    "price_range": "$$",
    "rank": 21,
    "rating": 4,
    "review_count": 917,
    "url": "https://www.yelp.com/biz/twin-smokers-bbq-atlanta?osq=Restaurants"
  },
  {
    "address": "270 Peachtree St NW Downtown",
    "business_name": "White Oak Kitchen & Cocktails",
    "categories": "Southern,American (New),Bars",
    "price_range": "$$$",
    "rank": 22,
    "rating": 3.5,
    "review_count": 617,
    "url": "https://www.yelp.com/biz/white-oak-kitchen-and-cocktails-atlanta?osq=Restaurants"
  },
  {
    "address": "17 Andrew Young International Blvd NE Downtown",
    "business_name": "Amalfi Pizza",
    "categories": "Pizza,Italian",
    "price_range": "$$",
    "rank": 23,
    "rating": 4,
    "review_count": 706,
    "url": "https://www.yelp.com/biz/amalfi-pizza-atlanta?osq=Restaurants"
  },
  {
    "address": "210 Peachtree St NW Downtown",
    "business_name": "The Cafe",
    "categories": "Breakfast & Brunch",
    "price_range": "",
    "rank": 24,
    "rating": 3.5,
    "review_count": 2,
    "url": "https://www.yelp.com/biz/the-cafe-atlanta-2?osq=Restaurants"
  },
  {
    "address": "60 Andrew Young International Blvd NE Downtown",
    "business_name": "Truva Turkish Kitchen",
    "categories": "Mediterranean,Turkish",
    "price_range": "$$",
    "rank": 25,
    "rating": 4,
    "review_count": 446,
    "url": "https://www.yelp.com/biz/truva-turkish-kitchen-atlanta?osq=Restaurants"
  },
  {
    "address": "206 Edgewood Ave NE Downtown",
    "business_name": "Letsbap",
    "categories": "Korean,Chicken Wings,Tapas/Small Plates",
    "price_range": "",
    "rank": 26,
    "rating": 5,
    "review_count": 1,
    "url": "https://www.yelp.com/biz/letsbap-atlanta?osq=Restaurants"
  },
  {
    "address": "127 Peachtree St NE Downtown",
    "business_name": "By George",
    "categories": "French",
    "price_range": "",
    "rank": 27,
    "rating": 3.5,
    "review_count": 30,
    "url": "https://www.yelp.com/biz/by-george-atlanta?osq=Restaurants"
  },
  {
    "address": "181 Peachtree St NE Downtown",
    "business_name": "AG",
    "categories": "American (New),Steakhouses",
    "price_range": "$$$",
    "rank": 28,
    "rating": 3.5,
    "review_count": 184,
    "url": "https://www.yelp.com/biz/ag-atlanta-2?osq=Restaurants"
  },
  {
    "address": "265 Peachtree St NE Downtown",
    "business_name": "Polaris",
    "categories": "American (Traditional),Cocktail Bars",
    "price_range": "$$$",
    "rank": 29,
    "rating": 4,
    "review_count": 307,
    "url": "https://www.yelp.com/biz/polaris-atlanta?osq=Restaurants"
  },
  {
    "address": "192 Peachtree Center Ave NE Downtown",
    "business_name": "Hsu’s Atlanta",
    "categories": "Chinese,Noodles",
    "price_range": "$$",
    "rank": 30,
    "rating": 4,
    "review_count": 349,
    "url": "https://www.yelp.com/biz/hsus-atlanta-atlanta?osq=Restaurants"
  }
]

Install and Use

Install

Install the Algorithmia CLI client by running:

curl -sSLf https://algorithmia.com/install.sh | sh

Then authenticate by running:

$ algo auth
# When prompted for api endpoint, hit enter
# When prompted for API key, enter your key: YOUR_API_KEY
CLI Install Docs

Use



    algo run specrom/Scrape_Yelp_Restaurant_Listings/0.2.0 -d '{"search_terms": "Restaurants", "location":"30301"}' --timeout 300
  
CLI Docs