JSPM

@brahmbeyond/instareel

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16
  • Score
    100M100P100Q61824F
  • License MIT

Instagram Reels downloader using JavaScript

Package Exports

  • @brahmbeyond/instareel
  • @brahmbeyond/instareel/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@brahmbeyond/instareel) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

instareel

This project allows you to download your Instagram Reels.It provide you downloadable link for your instagram Reel.
npm NPM visitor badge

For updated information visit Github

Installation

npm i @brahmbeyond/instareel 

To install globally ↓

npm i -g @brahmbeyond/instareel 

Usage

→ CLI

insta get-reel <url of reel>

example :

insta get-reel https://www.instagram.com/p/C3C2RnRA2dx/

OR

reel get-reel <urls of reels seperated by spaces>

example :

reel get-reel https://www.instagram.com/p/C3C2RnRA2dx/ https://www.instagram.com/p/C2ZE9tqLTQz/

→ Code

  • The agruments to the function should be array.
  • The result returned is also a array.
const getInstagramReel = require('@brahmbeyond/instareel');

const instagramReelURLs = ['https://www.instagram.com/reel/CU6nIv4jRBH/','https://www.instagram.com/reel/CU6nIv4jRBH/'];

getInstagramReel(instagramReelURLs)
    .then(downloadLinks => {
        console.log('Download links:', downloadLinks);
    })
    .catch(error => {
        console.error('Error:', error);
    });

Please note that the getInstagramReel function is asynchronous, so we use .then() and .catch() to handle the Promise it returns. We can also use async/await syntax for a more synchronous style of handling Promises. Here's how you can do it:

async function main() {
    const instagramReelURLs = ['https://www.instagram.com/reel/CU6nIv4jRBH/'];

    try {
     const links = await getInstagramReel(instagramReelURL);
        console.log(links);
    } catch (err) {
        console.error(err);
    }
}

main();

Todo

  • human behaviour.

Contributing

Feedback and Contributions are always welcome!

Use Wisely

This is a third party library and not associated with Instagram. We're strictly against spam. You are liable for all the actions you take.