Skip to content

tib-tib/instagram-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instagram Scraper

Basic scraper for Instagram user profile

Installation

yarn add instagram-scraper

How to use it

Get user data

const instagramScraper = require('instagram-scraper')

instagramScraper.getUserData('teddysphotos').then(userData => {
  console.log('User data: ', userData)
})

Get user posts

const instagramScraper = require('instagram-scraper')

instagramScraper.getUserPosts('teddysphotos').then(posts => {
  console.log('Posts: ', posts)
})

Get post comments

const instagramScraper = require('instagram-scraper')

const postCode = 'BWD4NjklGAt'
const commentsLimit = 300 // optional parameter to specify how many comments we want to get
instagramScraper.getPostComments(postCode, commentsLimit).then(comments => {
  console.log('Post comments: ', comments)
})

About

Basic scraper for instagram user profile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published