You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

redgifs-downloader

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redgifs-downloader

This is a simple utiliy which allows you to download all videos from any user or search term on RedGIFs.

2.1.1
latest
npmnpm
Version published
Weekly downloads
10
-88.1%
Maintainers
1
Weekly downloads
 
Created
Source

Welcome to RedGIFs Downloader 👋

License: MIT Downloads NPM latest NPM beta

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.

Usage

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

  • Recommended use case

Simple Approach

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")

Advanced Approach

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
  • Standalone Links API
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})

Options object structure

FieldData typeDescriptionDefault
minLikesnumberMinimum amount of likesundefined
maxLikesnumberMaximum amount of likesundefined
minDislikesnumberMinimum amount of dislikesundefined
maxDislikesnumberMaximum amount of dislikesundefined
minViewsnumberMinimum amount of viewsundefined
maxViewsnumberMaximum amount of viewsundefined
minDurationnumberMinimum gfy duration in secondsundefined
maxDurationnumberMaximum gfy duration in secondsundefined
minHeightnumberMinimum height in pixelsundefined
maxHeightnumberMaximum height in pixelsundefined
minWidthnumberMinimum width in pixelsundefined
maxWidthnumberMaximum width in pixelsundefined
numberToDownloadnumberMax amount of gfycats to download250
nsfwbooleanWhether gfy is tagged as "nsfw"undefined
hasAudiobooleanWhether gfy has audioundefined
useMobilebooleanWhether to use mobile urls instead of mp4false
skipExistingbooleanWhether to skip redownloading already existing filesfalse

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.

Author

👤 Mišo Barišić

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2021 misobarisic.
This project is MIT licensed.

Keywords

redgifs

FAQs

Package last updated on 05 Sep 2022

Did you know?

Socket

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.

Install

Related posts