Giter VIP home page Giter VIP logo

yelp-business-query's Introduction

YELP! Business Query

Query companies by name and location using duckduckgo local.js strategy

Requirements

node >= 8

Installation

npm i

Usage

node index.js "{PLACE_NAME}" "{LOCATION}"

Usage example:

node index.js "Ghazal Arabian Food" "Florianópolis, Santa Catarina"

Example Output:

    {
        "signal": "medium",
        "local_source": "exact_match",
        "results": [
            {
                "exact_match": 0,
                "returned_categories": [
                    [
                        "Food Trucks",
                        "foodtrucks"
                    ],
                    [
                        "Vegan",
                        "vegan"
                    ],
                    [
                        "Arabian",
                        "arabian"
                    ]
                ],
                "phone": "+55 (48) 99901-6916",
                "photoURL": "https://www.yelp.com/biz_photos/ghazal-arabian-food-florian%C3%B3polis?adjust_creative=dWJMtmYxpd5N5yoyzSuhtA&utm_campaign=yelp_api&utm_medium=api_v2_search&utm_source=dWJMtmYxpd5N5yoyzSuhtA",
                "url": "https://www.yelp.com/biz/ghazal-arabian-food-florian%C3%B3polis?adjust_creative=dWJMtmYxpd5N5yoyzSuhtA&utm_campaign=yelp_api&utm_medium=api_v2_search&utm_source=dWJMtmYxpd5N5yoyzSuhtA",
                "id": "ghazal-arabian-food-florianópolis",
                "coordinates": {
                    "longitude": -48.45697,
                    "latitude": -27.4287
                },
                "image": "https://s3-media3.fl.yelpcdn.com/bphoto/FRwKImoWsrJFIEVesIKpZQ/ls.jpg",
                "distance": 21526.4228176427,
                "address_lines": [
                    "R. Madre Maria Vilac, 1490",
                    "Central Park",
                    "Florianópolis - SC 88054-001",
                    "Brazil"
                ],
                "id_words": [
                    "ghazal",
                    "arabian",
                    "food",
                    "florianópolis"
                ],
                "name": "Ghazal Arabian Food",
                "neighborhood": "",
                "review_detail": [],
                "reviews": 0,
                "thumbnails": [
                    "https://s3-media3.fl.yelpcdn.com/bphoto/T6NW7lpRvXSBEuHh3cHA9Q/ms.jpg",
                    "https://s3-media4.fl.yelpcdn.com/bphoto/4fN401jZgdC7ZDKj3O13OA/ms.jpg",
                    "https://s3-media2.fl.yelpcdn.com/bphoto/zzInQu9FzSIwtIhSoS-bDg/ms.jpg"
                ],
                "closed": false,
                "menu": "",
                "rating": 0,
                "price": 0,
                "boosted": 0,
                "engine": "Yelp",
                "hours": {
                    "Thu": "6:30pm-11:00pm",
                    "Mon": "6:30pm-11:00pm",
                    "Wed": "6:30pm-11:00pm",
                    "Sun": "6:30pm-11:00pm",
                    "Fri": "6:30pm-11:00pm",
                    "Sat": "6:30pm-11:00pm",
                    "Tue": "6:30pm-11:00pm"
                },
                "address": "R. Madre Maria Vilac, 1490, Central Park, Florianópolis - SC 88054-001, Brazil",
                "city": "Florianópolis"
            }
        ],
        "proximity": 1,
        "vqd": {
            "Ghazal%20Arabian%20Food": "111388234582231074290475707584048214721"
        },
        "query": "Ghazal Arabian Food",
        "ads": [],
        "more_at": "http://www.yelp.com/search?find_desc=ghazal%20arabian%20food&find_loc=%2D27.5904%2C%2D48.5758"
    }

yelp-business-query's People

Contributors

anarqz avatar

Stargazers

Colter Bowman avatar

Watchers

James Cloos 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.