Skip to content

Instantly share code, notes, and snippets.

@FelDev
Last active October 26, 2019 21:11
Show Gist options
  • Save FelDev/1b9b93ba1bb03742abcd34a8bd5799ab to your computer and use it in GitHub Desktop.
Save FelDev/1b9b93ba1bb03742abcd34a8bd5799ab to your computer and use it in GitHub Desktop.
let rp = require('request-promise');
rp('https://www.youtube.com/watch?v=dQw4w9WgXcQ') // lol
.then(function (htmlString) {
// It worked! Process htmlString...
})
.catch(function (err) {
// It failed! Handle the error...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment