Socket
Book a DemoInstallSign in
Socket

instagram-node-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instagram-node-wrapper

A simply wrapper to get user information on instagram

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

Instagram-node-wrapper

This is a simply node wrapper of instagram

Install

npm i instagram-node-wrapper

Usage

Basic usage

const instagramWrapper = require('instagram-node-wrapper')

instagramWrapper(username).then((url)=>{
    console.log(url)
})

Get all information

const instagramWrapper = require('instagram-node-wrapper')

instagramWrapper('instagram').then((url)=>{
    console.log(url)
})
/*
{ description: 'Bringing you closer to the people and things you love. ❤️',
  info: { username: 'instagram', fullName: 'Instagram' },
  follow: { followers: 321759024, following: 224 },
  link:
   { url: 'https://instagram.com/instagram',
     website:
      'https://about.instagram.com/community/programs/pressure-to-be-perfect' },
  posts:
   { number: 6156,
     post:
      [ [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object] ] } }
*/

Get image information

const instagramWrapper = require('instagram-node-wrapper')

instagramWrapper('instagram').then((url)=>{
    console.log(url.posts.post[0]) //0 equal to image do you want 
})
/*
{ url:
   'https://scontent-cdt1-1.cdninstagram.com/v/t51.2885-15/e35/74842677_423371495214848_2034238600495834348_n.jpg?_nc_ht=scontent-cdt1-1.cdninstagram.com&_nc_cat=1&oh=af2e5ea4a9b1f7deb1feb3d37657260b&oe=5DF711CA',
  description: 'Image may contain: tree, dog, outdoor and nature',
  comment: { count: 35298 },
  like: { count: 2142811 } }*/

Keywords

instagram

FAQs

Package last updated on 15 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts