redgifs
v1.0.8
Published
Easy getting video-file url by page on redgifs.com
Downloads
67
Maintainers
Readme
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-chrome
Installation
$ npm i redgifs
Usage
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 test
Contributing
- 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