instaparser

0.1.2 • Public • Published

instaparser.js

📷 Unofficial instagram parser to get Instagram photos data by tag search in node-side.

Initial environment is made by npm-webpack-boilerplate.

Installation

instaparser is available on NPM:

npm install instaparser

Basic Usage

getTopPosts(tag:)

Find top 9 Instagram posts data from the tag. This method return Promise

Example

// CommonJS
var Instaparser = require("instaparser");

Instaparser.getTopPosts('catsagram')
  .then(function(res) {
    console.log(res);
  })
  .catch(function(err) {
    throw new Error(err);
  });

getRecentPosts(tag:)

Find recent 9 Instagram posts data from the tag. This method return Promise

Example

// CommonJS
var Instaparser = require("instaparser");

Instaparser.getRecentPosts('catsagram')
  .then(function(res) {
    console.log(res);
  })
  .catch(function(err) {
    throw new Error(err);
  });

Development

instaparser.js Architecture

instaparser.js Architecture

Install

npm install

Dependency module install.

Build

npm run build

Do some magic with ES6 to create ES5 code.

Test

npm run test

Run test with jasmine + jasmine-node

Example

You can find example implementations in the example/ directory.

Example server excute

  • Mac : TAG="keyword" npm run example
  • Windows
    • The first method set TAG="keyord" and npm run example
    • The second method example/example.cmd

You can see result in

Make .json file

Make json file using instaparser.

npm run jsonfile

Develop

npm run dev

Run develop server You can see result in

Example page

example

License

MIT License

Copyright (c) 2016 instaparser Team.

Package Sidebar

Install

npm i instaparser

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • jeffgukang