Skip to main content

Yelp Reviews Scraper

Project description

Python SDK that allows scraping reviews from Yelp businesses.

Generate API Token

Installation

Python 3+

pip install yelp-reviews-scraper

Link to the python package page

Initialization

from yelp_reviews_scraper import YelpReviewsClient

client = YelpReviewsClient(api_key='API_KEY_FROM_OUTSCRAPER.COM')

Extract Yelp reviews

results = client.get_reviews(['eggcellent-waffles-san-francisco'])

Yelp Reviews Scrpaer demo

{
  "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!! <br><br>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&#39;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. <br><br>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! <br>Great portion and there location is just down from the top of Knob Hill. (Nice park to sit in while eating.)<br>I see coming back again for a sweet waffle and there are several waffle flavors I&#39;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"
      }
    ]
  ]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yelp-reviews-scraper-0.0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yelp_reviews_scraper-0.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file yelp-reviews-scraper-0.0.1.tar.gz.

File metadata

  • Download URL: yelp-reviews-scraper-0.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for yelp-reviews-scraper-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4febcfaeb5a74c0847e4dc35f0c1cd0917a7937c3126f42842778e02be4965dd
MD5 b4f55bf2e9bd3593fcd7b0832e17aef4
BLAKE2b-256 124a209f6a289e560561c5396356dd036a2224874cd943c152d90f8b84e5c62b

See more details on using hashes here.

File details

Details for the file yelp_reviews_scraper-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: yelp_reviews_scraper-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for yelp_reviews_scraper-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe84fdab2db77bf60b69b9f65d867ec4e81cd2c0199b13dbe16e52a5b550def4
MD5 4ef80b650e5dbe9bd449964494558e19
BLAKE2b-256 fdd706120439b47cd3e08b6b059b868a94fef3f7ab138bc0a6cd9a202d6e5e1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page