Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages