2.1.1 • Published 2 years ago

redgifs-downloader v2.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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

  1. 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
  1. 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.

2.1.1

2 years ago

2.0.3

2 years ago

2.1.0

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.2-beta.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.0-beta.4

3 years ago

1.0.0-beta.5

3 years ago

1.0.0-beta.11

3 years ago

1.0.0-beta.12

3 years ago

1.0.0-beta.10

3 years ago

1.0.0-beta.6

3 years ago

1.0.0-beta.7

3 years ago

1.0.0-beta.8

3 years ago

1.0.0-beta.9

3 years ago

1.0.0-beta.15

3 years ago

1.0.0-beta.13

3 years ago

1.0.0-beta.14

3 years ago

0.0.10

3 years ago

1.0.0-beta.2

3 years ago

1.0.0-beta.3

3 years ago

1.0.0-beta.1

3 years ago

0.1.1-alpha.0

3 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1-alpha.2

3 years ago

0.1.1

3 years ago

0.1.1-alpha.1

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago