GithubHelp home page GithubHelp logo

bestbuyapis / bestbuy-cli Goto Github PK

View Code? Open in Web Editor NEW
23.0 8.0 7.0 176 KB

๐Ÿท Download data from the Best Buy Catalog API in bulk from the command line

License: MIT License

JavaScript 100.00%
bestbuy catalog api download tool bulk products stores command line

bestbuy-cli's Introduction

bestbuy-cli

npm travis standard

Download data from the Best Buy Catalog API in bulk from the command line.

Get an API key at developer.bestbuy.com.

Best Buy CLI Tool

Install

npm install --global bestbuy-cli

Can't install node? Download a standalone executable from the GitHub Releases page!

Usage

>bestbuy --help

Best Buy Bulk Download Tool (https://github.com/BestBuyAPIs/bestbuy-cli)

Usage: bestbuy [resource] [options]

    Examples:
      bestbuy categories
      bestbuy products --query "active=true" --show "name,sku" --output products.json
      bestbuy stores --format xml --output stores.xml
      bestbuy stores --query "region=GA&storeType='outlet center'" --output stores.json

    resource              resource to download: products, categories, stores
    --query, -q           use a custom query to filter the results (ampersand separated)
    --show, -s            fields to show (comma separated)
    --sort, -r            sort results by fields (comma separated)
    --key, -k             Best Buy API key (default: "BBY_API_KEY environment variable")
    --format, -f          format of the response as json, xml, csv or tsv (default: "json")
    --output, -o          name of file to send output (optional; If not present, out will go to stdout)
    --bare, -b            newline delimited - each item on own line without extra cruft (default: false)
    --version, -v         show version information
    --help, -h            show help

Visit the Best Buy API Documentation for more details on writing custom queries.

License

MIT

bestbuy-cli's People

Contributors

flet avatar kimgerst avatar mslynch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bestbuy-cli's Issues

timeout - Edit resolved

Was having trouble with time outs , fixed my issue by editing it in index.js.
thanks for great tool :)

Throws when missing CLI

bret-netlify:~ bret$ bestbuy-cli categories
/usr/local/lib/node_modules/bestbuy-cli/node_modules/bestbuy/index.js:14
  if (!options.key) throw new Error('A Best Buy developer API key is required');
                    ^

Error: A Best Buy developer API key is required
    at bestbuy (/usr/local/lib/node_modules/bestbuy-cli/node_modules/bestbuy/index.js:14:27)
    at run (/usr/local/lib/node_modules/bestbuy-cli/index.js:13:13)
    at cli (/usr/local/lib/node_modules/bestbuy-cli/bin.js:104:3)
    at Object.<anonymous> (/usr/local/lib/node_modules/bestbuy-cli/bin.js:108:3)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Function.Module.runMain (module.js:665:10)

Not sure if you want to stack trace or not here.

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.