
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
redgifs-downloader
Advanced tools
This is a simple utiliy which allows you to download all videos from any user or search term on RedGIFs.
A desktop application utilizing this package can be downloaded from here Downloader
How many times have you wanted to download videos in bulk from RedGIFs. Downloading videos from your favourite user and any search term has never been easier! Just follow the steps below and make sure to use filters to enhance your experience.
Requires nodejs
and npm
. There are multiple ways you can use this downloader.
Install this package locally with npm i redgifs-downloader
or globally with npm i redgifs-downloader -g
const RedgifsDownloader = require("redgifs-downloader")
// Replace __dirname with your prefered starting directory of choice
// Gifs will be downloaded into their corresponding subdirectories
const downloader = RedgifsDownloader.create(__dirname)
downloader.downloadQuery("juicy")
downloader.downloadUser("your favourite user's id")
const RedgifsDownloader = require("redgifs-downloader")
// Replace __dirname with your prefered starting directory of choice
// Gifs will be downloaded into their corresponding subdirectories
const downloader = RedgifsDownloader.instance(__dirname)
// EventListeners
downloader.addEventListener("onInit", info => {
console.log("[onInit]", info)
})
downloader.addEventListener("onStart", info => {
console.log("[onStart]", info)
})
downloader.addEventListener("onFinish", info => {
console.log("[onFinish]", info)
})
downloader.addEventListener("onFileDownloadStart", info => {
console.log("[onFileDownloadStart]", info)
})
downloader.addEventListener("onFileDownloadFinish", info => {
console.log("[onFileDownloadFinish]", info)
})
downloader.addEventListener("onFileDownloadSkip", info => {
console.log("[onFileDownloadSkip]", info)
})
downloader.addEventListener("onGetLinks", info => {
console.log("[onGetLinks]", info)
})
downloader.addEventListener("onError", info => {
console.log("[onError]", info)
})
downloader.downloadQuery("juicy", options)
// options object explained down below
const RedgifsDownloader = require("redgifs-downloader")
//1
RedgifsDownloader.getUserLinks("your favourite user's id", {numberToDownload: 2}).then(console.log)
//2
const links = await RedgifsDownloader.getSearchLinks("juicy", {minLikes: 3})
Field | Data type | Description | Default |
---|---|---|---|
minLikes | number | Minimum amount of likes | undefined |
maxLikes | number | Maximum amount of likes | undefined |
minDislikes | number | Minimum amount of dislikes | undefined |
maxDislikes | number | Maximum amount of dislikes | undefined |
minViews | number | Minimum amount of views | undefined |
maxViews | number | Maximum amount of views | undefined |
minDuration | number | Minimum gfy duration in seconds | undefined |
maxDuration | number | Maximum gfy duration in seconds | undefined |
minHeight | number | Minimum height in pixels | undefined |
maxHeight | number | Maximum height in pixels | undefined |
minWidth | number | Minimum width in pixels | undefined |
maxWidth | number | Maximum width in pixels | undefined |
numberToDownload | number | Max amount of gfycats to download | 250 |
nsfw | boolean | Whether gfy is tagged as "nsfw" | undefined |
hasAudio | boolean | Whether gfy has audio | undefined |
useMobile | boolean | Whether to use mobile urls instead of mp4 | false |
skipExisting | boolean | Whether to skip redownloading already existing files | false |
To save on storage space and bandwidth, make sure useMobile
is truthy! If a file is malformed and cannot be properly played,
skipExisting
does not care. It will always skip when there is a chance.
👤 Mišo Barišić
Give a ⭐️ if this project helped you!
Copyright © 2021 misobarisic.
This project is MIT licensed.
FAQs
This is a simple utiliy which allows you to download all videos from any user or search term on RedGIFs.
The npm package redgifs-downloader receives a total of 15 weekly downloads. As such, redgifs-downloader popularity was classified as not popular.
We found that redgifs-downloader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.