GithubHelp home page GithubHelp logo

vivino-api's Introduction

Vivino API

Vivino API is Node.js console app to select vivino.com items by the following params:

  • name - Required wine name
  • country - country to ship to. Default = US
  • state - U.S. state to shipt to. Default CA for US, an empty string for other countries
  • minPrice - min price
  • maxPrice - max price
  • noPriceIncluded - should items without a price be included?
  • minRatings - min amount of ratings
  • maxRatings - max amount of ratings
  • minAverage - min average rating
  • maxAverage - max average rating

Examples to run the app:

> node vivino.js --name=malbec --minPrice=10 --maxPrice=25

> node vivino.js "--name=Pinot Noir" --minPrice=10 --maxPrice=25

> node vivino.js --name=malbec --minPrice=10 --maxPrice=25 --noPriceIncluded --minRatings=5000 --maxRatings=100000 --minAverage=3.1 --maxAverage=4.5

> node vivino.js "--name=Pinot Noir" --country=US --state=NY

> node vivino.js --country=RU --name=malbec --maxPrice=25 --minRatings=50000 --minAverage=4

Results are output to vivino-out.json file in JSON format.

The vivino-out.json example:

{
    "vinos": [
        {
        "name": "Trivento Reserve Malbec",
        "link": "https://www.vivino.com/wines/1527219",
        "thumb": "https://images.vivino.com/thumbs/diN0gK6qSpKsgbMApBbxNw_pl_375x500.png",
        "country": "Argentina",
        "region": "Mendoza",
        "average_rating": 3.6,
        "ratings": 52459,
        "price": 10.99
        },
        {
        "name": "Luigi Bosca Malbec",
        "link": "https://www.vivino.com/wines/4133550",
        "thumb": "https://images.vivino.com/thumbs/F7zv69HZS9OHt0UPrc6GRQ_pl_375x500.png",
        "country": "Argentina",
        "region": "Mendoza",
        "average_rating": 4,
        "ratings": 75409,
        "price": 18.79
        }
    ],
    "status": "FULL_DATA", // other statuses in case of an error
    "message": "some exception", // message - in case of an exception only
    "http_status": 403, // http status - in case of an error only
	"page_index": 23 // index of the problem page - in case of an error only
}

vivino-api's People

Contributors

aptash 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.