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.
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
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
getInstagramReelfunction is asynchronous, so we use.then()and.catch()to handle the Promise it returns. We can also useasync/awaitsyntax 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.