Last active
October 26, 2019 21:11
-
-
Save FelDev/1b9b93ba1bb03742abcd34a8bd5799ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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