Giter VIP home page Giter VIP logo

icecat-cli's Introduction

Icecat CLI

Version License Known Vulnerabilities

Command Line Interface for the Icecat API.

Getting started

1) Icecat account

To create a Icecat account, go to the Icecat registration page.

2) Installation

Install the Icecat CLI by running the following command:

Linux / OSX:

sudo npm install icecat-cli -g

Windows:

npm install icecat-cli -g

3) Basic usage

Create config.ini with:

[account]
username = {your-icecat-username}
password = {your-icecat-password} 

[product]
defaultLanguage = {preferred-language-code}

Language: Supported language codes.

Run the follow command:

gtin (EAN or UPC)

icecat -c config.ini --gtin 4948570114344

Commands

Show product information

Request with EAN:

icecat -c config.ini --gtin 4948570114344

Request with Icecat Product Id:

icecat -c config.ini --id 29900045

Example response:

Type Value
Name: X4071UHSU-B1
Icecat Product Id: 29900045
EAN: 4948570114344
Release: 2015-10-04
Supplier: iiyama
Category: public displays
Short Description: 39.5 MVA, 3 ms, 350 cd/m², 3840 x 2160, 16:9, PiP, PbP, HTCP, VESA, OSD, 3 x USB 3…
Product Url: http://www.iiyama.com/nl_nl/producten/prolite-x4071uhsu-b1/
Manual PDF Url: http://pdfs.icecat.biz/pdf/48068167-5566-manual.pdf
Product Info PDF Url: http://pdfs.icecat.biz/pdf/48068173-7155.pdf

Download product information

Download Icecat XML, Images and PDF product information.

A new folder will be created based on the Icecat unique product Id.

Request with EAN:

icecat -c config.ini --gtin 4948570114344 --save

Request with Icecat Product Id:

icecat -c config.ini --id 29900045 --save

Example response:

Successfully downloaded file: http://images.icecat.biz/img/gallery/29900045_6765.jpg
Successfully downloaded file: http://images.icecat.biz/img/gallery/29900045_6984.jpg
Successfully downloaded file: http://images.icecat.biz/img/gallery/29900045_6068.jpg
Successfully downloaded file: http://pdfs.icecat.biz/pdf/48068173-7155.pdf
... etc

Creates folder structure:

  • 29900045
    • images
      • 29900045_9148.jpg
      • 29900045_7312.jpg
      • 29900045_6984.jpg
      • ... etc
    • pdfs
      • 48068173-7155.pdf
      • 48068167-5566-manual.pdf
    • 29900045.xml

Download Free XML Export

Default XML export:

icecat -c config.ini --export

Example response:

Start downloading export to: 
 /home/icecat/example/export-EN.xml
  Downloading [============        ] 2637 Kb/s 58% 13.7s

XML export with specific language:

icecat -c config.ini --export --lang DE

Example response:

Start downloading export to: 
 /home/icecat/example/export-DE.xml
  Downloading [============        ] 2637 Kb/s 58% 13.7s

License

MIT License

icecat-cli's People

Stargazers

 avatar  avatar  avatar

Watchers

 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.