@totallynodavid/downloader
v2.0.1
Published
A Node.js package to retrieve direct media URLs from popular social platforms.
Downloads
55
Maintainers
Readme
Media Downloader
A Node.js package to retrieve direct media URLs from Imgur, Reddit, Instagram, Facebook (video), Twitter, Pinterest, and TikTok.
Installation
npm install media_downloader
Usage
Basic usage:
const MediaDownloader = require('media_downloader');
MediaDownloader('https://imgur.com/gallery/example')
.then(result => console.log(result))
.catch(error => console.error(error));
Advanced usage:
MediaDownloader(url, specificHost, quality);
url
(string): URL of the media to process.specificHost
(string, optional): Force a specific host module. Supported for all the hosts.quality
(string, optional): Media quality. Supported for Facebook videos: 'sd', 'hd'.
The package returns a Promise that resolves to:
{
urls: string[],
count: number
}
If you need help, please open an issue. Happy downloading!