UNPKG

redgifs

Version:

Easy getting video-file url by page on redgifs.com

42 lines (31 loc) 968 B
# 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 1. Fork it! 2. Create your feature branch: `git checkout -b my-new-feature` 3. Commit your changes: `git commit -am 'Add some feature'` 4. Push to the branch: `git push origin my-new-feature` 5. Submit a pull request :D