Skip to content

Jumpathy/snapinsta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Description:

This package will serve you public Instagram post data in an array of image/video URLs and corresponding mime types. Behind the scenes, it uses https://snapinst.app to get Instagram post URLs due to complications with Instagram's API I was unable to fix myself.

Based on: https://github.com/x404xx/Insta-Down/tree/main/snapinsta

Installation: npm i snapinsta

Usage:

const snapinsta = require("snapinsta")

async function main(){
    let urls = await snapinsta.getLinks("https://www.instagram.com/p/DF8R2ybPmNF/?utm_source=ig_web_copy_link")
    urls.forEach(function(value,idx){
        let contentUrl = value.url
        let mimeType = value.mime

        console.log(contentUrl,mimeType)
    })
}
main()

Methods:

  • snapinsta.getLinks(<Instagram URL>)

Returns: <array>

[
    {
        "url": <string: instagram post URL>
        "mime": <string: mime type for html>
        "idx": <integer>
    }, 
    ...
]

About

Instagram downloader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published