yelp-scraper-api


Nameyelp-scraper-api JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://oxylabs.io/products/scraper-api/web/yelp
SummaryYelp Scraper for hassle-free public Yelp data collection, including search results, comments, profiles, posts, and more.
upload_time2023-12-18 11:17:48
maintainer
docs_urlNone
authorOxylabs
requires_python>=3.6
licenseMIT
keywords yelp-scraper yelp-scraper yelp-web-scraper web-scraper-api scraping-yelp yelp-data
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Yelp Scraper
[![Oxylabs promo code](https://user-images.githubusercontent.com/129506779/250792357-8289e25e-9c36-4dc0-a5e2-2706db797bb5.png)](https://oxylabs.go2cloud.org/aff_c?offer_id=7&aff_id=877&url_id=112)


[<u>Yelp Scraper</u>](https://oxylabs.io/products/scraper-api/web/yelp)
enables you to scrape public Yelp data with ease and on any scale. This
guide will show you how to scrape Yelp using Oxylabs’ [<u>Scraper
API</u>](https://oxylabs.io/products/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:

```python
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
[<u>documentation</u>](https://developers.oxylabs.io/scraper-apis/web-scraper-api)
for information regarding payload parameters.

### Output sample
```json
{
    "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 [<u>live
chat</u>](https://oxylabs.io/) or
[<u>email</u>](mailto:support@oxylabs.io) in case you have any
questions.

            

Raw data

            {
    "_id": null,
    "home_page": "https://oxylabs.io/products/scraper-api/web/yelp",
    "name": "yelp-scraper-api",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "yelp-scraper,Yelp-scraper,yelp-web-scraper,web-scraper-api,scraping-yelp,yelp-data,",
    "author": "Oxylabs",
    "author_email": "marketing@oxylabs.io",
    "download_url": "https://files.pythonhosted.org/packages/3c/93/3df8c902bb55a1674e90d268205570a3fe578e0f1d9ba534c3ad60b5d682/yelp-scraper-api-1.0.0.tar.gz",
    "platform": null,
    "description": "# Yelp Scraper\n[![Oxylabs promo code](https://user-images.githubusercontent.com/129506779/250792357-8289e25e-9c36-4dc0-a5e2-2706db797bb5.png)](https://oxylabs.go2cloud.org/aff_c?offer_id=7&aff_id=877&url_id=112)\n\n\n[<u>Yelp Scraper</u>](https://oxylabs.io/products/scraper-api/web/yelp)\nenables you to scrape public Yelp data with ease and on any scale. This\nguide will show you how to scrape Yelp using Oxylabs\u2019 [<u>Scraper\nAPI</u>](https://oxylabs.io/products/scraper-api).\n\n## How it works\n\nYou can extract data from Yelp by sending a request to our API. The\nservice will send back the HTML of any Yelp page you want to scrape.\n\n### Python code example\n\nThis Python code sends a request to the API and retrieves the HTML of\nthe Yelp search results for the best burgers near Frankfurt am Main,\nHessen:\n\n```python\nimport requests\nfrom pprint import pprint\n\n# Structure payload.\npayload = {\n    'source': 'universal_ecommerce',\n    'url': 'https://www.yelp.co.uk/search?find_desc=Burgers&find_loc=Frankfurt,%20Hessen,%20Germany'\n}\n\n# Get response.\nresponse = requests.request(\n    'POST',\n    'https://realtime.oxylabs.io/v1/queries',\n    auth=('USERNAME', 'PASSWORD'),  # Your credentials go here\n    json=payload\n)\n\n# Instead of response with job status and results URL, this will return the\n# JSON response with results.\npprint(response.json())\n```\n\nHead to the\n[<u>documentation</u>](https://developers.oxylabs.io/scraper-apis/web-scraper-api)\nfor information regarding payload parameters.\n\n### Output sample\n```json\n{\n    \"results\": [\n        {\n            \"content\": \"<!doctype html>\n<html lang=\"en\">\n<head>\n            ... \n            </script></body>\n</html>\n\",\n            \"created_at\": \"2023-06-06 13:24:56\",\n            \"updated_at\": \"2023-06-06 13:25:01\",\n            \"page\": 1,\n            \"url\": \"https://www.yelp.co.uk/search?find_desc=Burgers&find_loc=Frankfurt,%20Hessen,%20Germany\",\n            \"job_id\": \"7071839378003205121\",\n            \"status_code\": 200\n        }\n    ]\n}\n```\nWith Oxylabs\u2019 Yelp Scraper API, you can forget about dealing with\ncomplex anti-bot systems and effortlessly collect public Yelp data,\nincluding search results, comments, profiles, posts, images, and much\nmore. Don\u2019t hesitate to contact us via [<u>live\nchat</u>](https://oxylabs.io/) or\n[<u>email</u>](mailto:support@oxylabs.io) in case you have any\nquestions.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Yelp Scraper for hassle-free public Yelp data collection, including search results, comments, profiles, posts, and more.",
    "version": "1.0.0",
    "project_urls": {
        "Bug Reports": "https://github.com/oxylabs/yelp-scraper/issues",
        "Documentation": "https://developers.oxylabs.io/scraper-apis/web-scraper-api",
        "Homepage": "https://oxylabs.io/products/scraper-api/web/yelp",
        "Source": "https://github.com/oxylabs/yelp-scraper"
    },
    "split_keywords": [
        "yelp-scraper",
        "yelp-scraper",
        "yelp-web-scraper",
        "web-scraper-api",
        "scraping-yelp",
        "yelp-data",
        ""
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "965af14a6d7621c18c479fe9b51c58f34bca02312da2d88b7ef4620e933d8c41",
                "md5": "1df752bebb49f6f08b7248d0c0c5166b",
                "sha256": "4cda0919cfddafbfac01f6f6c15694b05c9ed6395570f1bad7598ad84efbd8b6"
            },
            "downloads": -1,
            "filename": "yelp_scraper_api-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1df752bebb49f6f08b7248d0c0c5166b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 2403,
            "upload_time": "2023-12-18T11:17:45",
            "upload_time_iso_8601": "2023-12-18T11:17:45.909380Z",
            "url": "https://files.pythonhosted.org/packages/96/5a/f14a6d7621c18c479fe9b51c58f34bca02312da2d88b7ef4620e933d8c41/yelp_scraper_api-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3c933df8c902bb55a1674e90d268205570a3fe578e0f1d9ba534c3ad60b5d682",
                "md5": "dba21abcd85d1022b8618afd447b79a5",
                "sha256": "0f7df99cd1b86e08c5e534f057b8730d734e4b7cf590e5e13991378dda6691af"
            },
            "downloads": -1,
            "filename": "yelp-scraper-api-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "dba21abcd85d1022b8618afd447b79a5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2427,
            "upload_time": "2023-12-18T11:17:48",
            "upload_time_iso_8601": "2023-12-18T11:17:48.059641Z",
            "url": "https://files.pythonhosted.org/packages/3c/93/3df8c902bb55a1674e90d268205570a3fe578e0f1d9ba534c3ad60b5d682/yelp-scraper-api-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-18 11:17:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "oxylabs",
    "github_project": "yelp-scraper",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "yelp-scraper-api"
}
        
Elapsed time: 0.15663s