Get url to the profile picture of any instagram user in different resolutions
npm install --save instagram-profile-picture
Full size
const ipp = require('instagram-profile-picture');
ipp('9gag').then(user => {
console.log(user);
// => https://scontent-sit4-1.cdninstagram.com/7...jpg
});
Medium size
ipp.medium('9gag').then(user => {
console.log(user);
// => https://scontent-sit4-1.cdninstagram.com/7...jpg
});
Small size
ipp.small('9gag').then(user => {
console.log(user);
// => https://scontent-sit4-1.cdninstagram.com/7...jpg
});
Additionally, you can get downloadable link to the publically shared media (images/videos)
Images
ipp.image('https://www.instagram.com/p/BRfTRCQBeHw/').then(img => {
console.log(img);
// => "https://instagram.fpat1-1.fna....9017349928908750848_n.jpg"
});
Videos
ipp.video('https://www.instagram.com/p/BTTuhDsgtCs/').then(vid => {
console.log(vid);
// => "https://instagram.fpat1-1.fn....9178079197241802752_n.mp4"
})
Instavim
: Download instagram media directly from command line.
MIT © Rishi Giri;