Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yelp-scraper-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yelp-scraper-api

Yelp Scraper for hassle-free public Yelp data collection, including search results, comments, profiles, posts, and more.

  • 1.0.0
  • Source
  • PyPI
  • Socket score

Maintainers
1

Yelp Scraper

Oxylabs promo code

Yelp Scraper enables you to scrape public Yelp data with ease and on any scale. This guide will show you how to scrape Yelp using Oxylabs’ Scraper API.

How it works

You can extract data from Yelp by sending a request to our API. The service will send back the HTML of any Yelp page you want to scrape.

Python code example

This Python code sends a request to the API and retrieves the HTML of the Yelp search results for the best burgers near Frankfurt am Main, Hessen:

import requests
from pprint import pprint

# Structure payload.
payload = {
    'source': 'universal_ecommerce',
    'url': 'https://www.yelp.co.uk/search?find_desc=Burgers&find_loc=Frankfurt,%20Hessen,%20Germany'
}

# Get response.
response = requests.request(
    'POST',
    'https://realtime.oxylabs.io/v1/queries',
    auth=('USERNAME', 'PASSWORD'),  # Your credentials go here
    json=payload
)

# Instead of response with job status and results URL, this will return the
# JSON response with results.
pprint(response.json())

Head to the documentation for information regarding payload parameters.

Output sample

{
    "results": [
        {
            "content": "<!doctype html>
<html lang="en">
<head>
            ... 
            </script></body>
</html>
",
            "created_at": "2023-06-06 13:24:56",
            "updated_at": "2023-06-06 13:25:01",
            "page": 1,
            "url": "https://www.yelp.co.uk/search?find_desc=Burgers&find_loc=Frankfurt,%20Hessen,%20Germany",
            "job_id": "7071839378003205121",
            "status_code": 200
        }
    ]
}

With Oxylabs’ Yelp Scraper API, you can forget about dealing with complex anti-bot systems and effortlessly collect public Yelp data, including search results, comments, profiles, posts, images, and much more. Don’t hesitate to contact us via live chat or email in case you have any questions.

Keywords

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc