4.0.1 • Published 4 years ago

instagram-basic-data-scraper-with-username v4.0.1

Weekly downloads
44
License
MIT
Repository
github
Last release
4 years ago

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

OptionsOutput
idstring
fullnamestring
usernamestring
biostring
externalUrlstring
linkshimmedstring
postsstring
followersstring
followingstring
privateboolean
verifiedboolean
connectedobject

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

Username is the common arguments of the all the functions

FunctionsUsage
getIdID of the username
getFullnameExtract Fullname of the username
getBioExtract bio of the username
getExternalUrlGet External Url of the username
getLinkShimmedGet LinkShimmed of the username
getPostsGet Number of Posts of the username
getFollowersGet Number of Followers of the username
getFollowingGet Number of Following of the username
getPrivateTrue or False if the profile is private or public
getVerifiedTrue or False if the profile is verified
getConnectedGet 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;

4.0.1

4 years ago

4.0.0

4 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago