Giter Club home page Giter Club logo

oxylabs / yellow-pages-scraper-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 16 KB

Yellow Pages Scraper for collecting business names, phone numbers, addresses, emails, and other public details.

Home Page: https://oxylabs.io/products/scraper-api/web/yellow-pages-scraper-api

Python 9.00% Shell 4.05% PHP 12.46% C# 23.44% Go 12.72% Java 28.94% JavaScript 9.38%
scraper scraper-api yellow-pages yellow-pages-api yellow-pages-business-details-extractor yellow-pages-scraper api-crawler-online api-for-web-scraping api-scrape

yellow-pages-scraper-api's Introduction

Yellow Pages Scraper

Oxylabs promo code

With Yellow Pages Scraper, you can easily overcome various anti-scraping measures and collect public data from Yellow Pages on a large scale. See this quick tutorial to learn how to scrape Yellow Pages using Oxylabs’ Scraper API.

How it works

To retrieve Yellow Pages results, you simply have to provide the URLs you want to scrape. Our API will deliver the HTML files of any public page.

Python code example

The example below shows how to form a payload, get a response from our API, and print the JSON output with HTML results:

import requests
from pprint import pprint

# Structure payload.
payload = {
   'source': 'universal',
   'url': 'https://www.yellowpages.ca/bus/Ontario/North-York/The-Burger-Cellar/6835043.html'
}

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

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

For more details about other parameters and functionalities, head to the documentation.

Output sample

{
    "results": [
        {
            "content":"<!doctype html>\n<html lang=\"en\">\n<head>
            ...
            </script></body>\n</html>\n",
            "created_at": "2023-06-12 06:44:07",
            "updated_at": "2023-06-12 06:44:08",
            "page": 1,
            "url": "https://www.yellowpages.ca/bus/Ontario/North-York/The-Burger-Cellar/6835043.html",
            "job_id": "7073912836237308929",
            "status_code": 200
        }
    ]
}

Oxylabs’ Yellow Pages Scraper API provides an effortless and scalable way to gather public data from Yellow Pages. You can extract business names, phone numbers, addresses, emails, and similar publicly available details. If you have any questions, please contact us via live chat or email.

yellow-pages-scraper-api's People

Contributors

augustoxy avatar oxylabsorg avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.