npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

instagram-basic-data-scraper-with-username

v4.0.1

Published

Basic Instagram Data Scraper from the username, Just to provide the developers the facility to access instagram data using username

Downloads

53

Readme

Instagram-Basic-data-Scraper-With-Username

Install

$ npm install --save instagram-basic-data-scraper-with-username

Usage

User ID

const instaObj = require('instagram-basic-data-scraper-with-username');

const user = 'joietribianni';

instaObj.specificField(user, 'id').then(id => {
  console.log(id);
  // => { data: '1429637717' }
});

OR

instaObj.specificField(user, 'id').then(res => {
  const userId = res.data;
  console.log(userId);
  // => 1429637717
});

OR

instaObj.getId(user).then(res => {
  const userId = res.data;
  console.log(userId);
  // => 1429637717
});

Example

Full Name

instaObj.specificField(user, 'fullname').then(fullname => {
  console.log(fullname);
  // => { data: 'Joie' }
});

API

instaObj.specificField('username', 'options')

username : string

options : string

| Options | Output | |--------------------|---------------| | id | string | | fullname | string | | username | string | | bio | string | | externalUrl | string | | linkshimmed | string | | posts | string | | followers | string | | following | string | | private | boolean | | verified | boolean | | connected | object |

Table of other functions that you can use to directly get the data

Username is the common arguments of the all the functions

| Functions | Usage | |--------------------|---------------| | getId | ID of the username | | getFullname | Extract Fullname of the username | | getBio | Extract bio of the username | | getExternalUrl | Get External Url of the username | | getLinkShimmed | Get LinkShimmed of the username | | getPosts | Get Number of Posts of the username | | getFollowers | Get Number of Followers of the username | | getFollowing | Get Number of Following of the username | | getPrivate | True or False if the profile is private or public | | getVerified | True or False if the profile is verified | | getConnected | Get the user connection object |

Usage

instaObj.getFullname(user).then(res => {
  const userFullname = res.data;
  console.log(userFullname);
  // => Joie
});

Get all the basic data in the single object

Usage

instaObj.getAll(user).then(res => {
  const userBasicAll = res.data;
  console.log(userBasicAll);
  // => {'id':1429637717}
});

Get profile pictures

Usage for Regular Picture

instaObj.instaRegular(user).then(res => {
  const userRegularImage = res;
  console.log(userRegularImage);
  // => "https://instagram.fdel22-1.fna.fbcdn.net/v/t51.2885-19/s150x150/23596544_189408294955120_549593597268197376_n.jpg?_nc_ht=instagram.fdel22-1.fna.fbcdn.net&oh=7fd3e57a8ee68ce98b46be778ed78d95&oe=5E836CF1"
});

Usage for HighDefiniton Picture

instaObj.instaHighDefination(user).then(res => {
  const userHDImage = res;
  console.log(userHDImage);
  // => "https://instagram.fdel22-1.fna.fbcdn.net/v/t51.2885-19/s150x150/23596544_189408294955120_549593597268197376_n.jpg?_nc_ht=instagram.fdel22-1.fna.fbcdn.net&oh=7fd3e57a8ee68ce98b46be778ed78d95&oe=5E836CF1"
});

License

MIT © Girish Baranda;