Skip to content

SharinPix/sharinpix-import

Repository files navigation

SharinPix Import

Installation

$ npm install -g sharinpix-import

Usage

Unix
$ env SHARINPIX_URL=sharinpix://secret_url_you_can_find_in_your_admin_dashboard sharinpix-import sample.csv > success.csv 2> error.csv
Windows
C:\foo> set SHARINPIX_URL=sharinpix://secret_url_you_can_find_in_your_admin_dashboard
C:\foo> sharinpix-import sample.csv > success.csv 2> error.csv
  • sample.csv refers to the path of the file containing the images to be imported.
  • success.csv refers to the path of the log file containing only successfully-imported images.
  • error.csv refers to the path of the error log file containing only images that failed to be imported.

The structure of the sample.csv file should be in the following form:

album_id_1;image_url_1;tag1,tag2,tag3;{"key":"value"}
album_id_2;image_url_2;tag1,tag2,tag3;{"key":"value"}
  • The symbol ; must be used as delimiter.
  • Note: {"key": "value"} refers to SharinPix metadatas in JSON.

Example

000000000000000000;http://lorempixel.com/400/200/sports/;foo,bar,dim;{"key":"value"}

License

MIT