1.0.8 • Published 4 years ago
redgifs v1.0.8
Redgifs
The library retrieves redgifs video file url from each page. Putting a page’s url will result in the library returning a link to an .mp4 file
!IMPORTANT!
For using the library on Heroku you should to add the current buildpacks:
$ heroku buildpacks:add --index 1 https://github.com/heroku/heroku-buildpack-chromedriver
$ heroku buildpacks:add --index 2 https://github.com/heroku/heroku-buildpack-google-chromeInstallation
$ npm i redgifsUsage
const Redgifs = require("redgifs");
const r = new Redgifs();
r.getRedgifsVideo("https://www.redgifs.com/watch/decisivebestbettong")
	.then((videoFileUrl) => console.log(videoFileUrl))
	.catch(console.log);Tests
npm run testContributing
- Fork it!
 - Create your feature branch: 
git checkout -b my-new-feature - Commit your changes: 
git commit -am 'Add some feature' - Push to the branch: 
git push origin my-new-feature - Submit a pull request :D