Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
yelp-reviews-scraper
Advanced tools
Python SDK that allows scraping reviews from Yelp businesses.
Generate API Token <https://app.outscraper.com/profile>
__
Python 3+
.. code:: bash
pip install yelp-reviews-scraper
Link to the python package page <https://pypi.org/project/yelp-reviews-scraper/>
__
.. code:: python
from yelp_reviews_scraper import YelpReviewsClient
client = YelpReviewsClient(api_key='API_KEY_FROM_OUTSCRAPER.COM')
.. code:: python
results = client.get_reviews(['eggcellent-waffles-san-francisco'])
.. code:: json
{
"id": "your-request-id",
"status": "Success",
"data": [
[
{
"query": "eggcellent-waffles-san-francisco",
"business_name": "Eggcellent Waffles",
"review_rating": 5,
"review_text": "This place is awesome!!
You are basically allowed to craft your dream sandwich. The customization is crazy and the portions are so satisfying. I would definitely recommend the savory options. I got a everything waffle with roast beef, ham, and horseradish. What a dream. I will be back.",
"review_photos": [],
"review_tags": [],
"owner_replies": [],
"review_id": "mMzh-4D_-jNG1zzWGo5SYQ"
},
{
"query": "eggcellent-waffles-san-francisco",
"business_name": "Eggcellent Waffles",
"review_rating": 4,
"review_text": "Honestly, I went to this place because of the silly name. It was a nice surprise. They have a wide variety of fillings to choose from sweet to savory, which is very nice. I've ordered the All Day waffle, which has sausage, avocado, cheese. What an interesting combination, well served and very tasty indeed. The pumpkin spice chai was also very good.
Nothing out of this world but a good experience no doubt.",
"review_photos": [],
"review_tags": [],
"owner_replies": [],
"review_id": "KKshwKeYC8nxzkOtprq1Mw"
},
{
"query": "eggcellent-waffles-san-francisco",
"business_name": "Eggcellent Waffles",
"review_rating": 3,
"review_text": "First time here. I am really excited by the idea of a waffle as the bread to a sandwich. My desire was for a savory breakfast to go. Nothing really struck me as that so I ordered the All Day sandwich. Pork, avacdo, cheese: great. Ranch dressing, yuck!
Great portion and there location is just down from the top of Knob Hill. (Nice park to sit in while eating.)
I see coming back again for a sweet waffle and there are several waffle flavors I'd like to try. However for the savory selections, I will be more selective. Maybe even building my own sandwich, which is an option.",
"review_photos": [
"https://s3-media0.fl.yelpcdn.com/bphoto/LGs0xZDWYS7sWlNV21r66g/300s.jpg"
],
"review_tags": [
"1 photo",
"1 check-in"
],
"owner_replies": [],
"review_id": "xpQACYnoK7WmRSiR-6ObEw"
}
]
]
}
FAQs
Yelp Reviews Scraper
We found that yelp-reviews-scraper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.