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

easy-instagram-post-downloader

v1.0.5

Published

Download Instagram Posts in seconds. Easy Installation and Usage.

Downloads

12

Readme

Image of easy-instagram-post-downloder

Get links of the publically shared medias on Instagram.

Install

$ npm install --global easy-instagram-post-downloader

Instagram Post Downloader Usage

const insta = require('easy-instagram-post-downloader');

// https://www.instagram.com/p/{postId}/
var postId = 'CM9i3rEKRBX';

// create downloads directory and get relative path
var dirName = './downloads';

insta(postId, dirName, (error, response) => { 
    if(error) console.log(`Error is: ${err}`); 
    if(response) console.log(response);
});

Sample Output Response

URL is https://www.instagram.com/p/CM9i3rEKRBX/?__a=1

{
  graphql: {
    shortcode_media: {
      __typename: 'GraphImage',
      id: '2539339124300124247',
      shortcode: 'CM9i3rEKRBX',
      dimensions: [Object],
      gating_info: null,
      fact_check_overall_rating: null,
      fact_check_information: null,
      sensitivity_friction_info: null,
      sharing_friction_info: [Object],
      media_overlay_info: null,
      media_preview: 'ACoqRGJPHerA4PvUC/MRj1qwo3kkdsg1nex0NWIyc9ah34OB2z9fzrQEYwe9U/KJyf071HMC1ImYHk8459PSmh+OtVyhJxnAOBSmMA43dPb/AOtV3sVy+RbDbjuPXpgcVb84IoYcYzkd/r781XEixj2PAPbgZ/l+dRSvuTOAV4OD7+lKWot2accm7g8Y70hkXdg46fnWalyx2qy4Lcf0/KoJ5ucdcYyenf1rBU22K1tyxOF3k9/pkHPoex9Afzqlu/3qFm2tu3YJJUADOD0B+n646UxpY8nKvnPOPWtlHuUp22LCbmYspwOeCMDrjA7ZI/TjvSNHJMwwhHY85IUegJ6+nWproneB23gfh6Um4/aOp6H+lPsZJtfMa0cp/eomfL4CnHHHBx3Pcmq7SEjccbmxn2x2Hbrk/pV5WPmPyeq/yrHJwgx/e/rTXYrf7i0JXChBhWGckjn2z7moDet6mnzDaqkcEgk49eaoVZmf/9k=',
      display_url: 'https://instagram.fmaa12-1.fna.fbcdn.net/v/t51.2885-15/fr/e15/s1080x1080/165076931_2939140333034008_2583165412809239535_n.jpg?tp=1&_nc_ht=instagram.fmaa12-1.fna.fbcdn.net&_nc_cat=104&_nc_ohc=6VDscrPLKS4AX9Ghu9s&ccb=7-4&oh=5198980a76bf18cc66cf54f07c545cab&oe=608822D0&_nc_sid=83d603',
      display_resources: [Array],
      accessibility_caption: 'Holi festival celebrations burst into colour in Nandagon, India. \n' +
        '\n' +
        'The Hindu festival of Holi, also known as the Festival of Colours, heralds the beginning of spring. It began in India as far back as the 4th century, but is now celebrated all over the world and is recognizable by its vast array of celebratory coloured powders.',
      is_video: false,
      tracking_token: 'eyJ2ZXJzaW9uIjo1LCJwYXlsb2FkIjp7ImlzX2FuYWx5dGljc190cmFja2VkIjp0cnVlLCJ1dWlkIjoiYmU5NTEwNGU5MzEzNGIyOTk2YTY2YTA3YzY2MGY3MWUyNTM5MzM5MTI0MzAwMTI0MjQ3In0sInNpZ25hdHVyZSI6IiJ9',
      edge_media_to_tagged_user: [Object],
      edge_media_to_caption: [Object],
      caption_is_edited: false,
      has_ranked_comments: false,
      edge_media_to_parent_comment: [Object],
      edge_media_to_hoisted_comment: [Object],
      edge_media_preview_comment: [Object],
      comments_disabled: false,
      commenting_disabled_for_viewer: false,
      taken_at_timestamp: 1616932834,
      edge_media_preview_like: [Object],
      edge_media_to_sponsor_user: [Object],
      location: null,
      viewer_has_liked: false,
      viewer_has_saved: false,
      viewer_has_saved_to_collection: false,
      viewer_in_photo_of_you: false,
      viewer_can_reshare: true,
      owner: [Object],
      is_ad: false,
      edge_web_media_to_related_media: [Object],
      edge_related_profiles: [Object]
    }
  }
}

downloads\14049126411806867.jpeg

License

ISC © Gowtham