Created
September 19, 2020 01:20
-
-
Save lukegackle/0387bb7cf3bf6bb28d3245c59ee06e24 to your computer and use it in GitHub Desktop.
Request-Promise Standard Format
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
rp('http://www.google.com') | |
.then(function (htmlString) { | |
// Process html... | |
}) | |
.catch(function (err) { | |
// Crawling failed... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment