Last active
February 18, 2019 06:15
-
-
Save DanNi0130/6d43a0610d9943beb154fd1efa5dac02 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const rp = require('request-promise'); | |
const url = 'https://en.wikipedia.org/wiki/List_of_Presidents_of_the_United_States'; | |
rp(url) | |
.then(function(html){ | |
//success! | |
console.log(html); | |
}) | |
.catch(function(err){ | |
//handle error | |
}); |
12th line is extra, gives error
Rename it to potusScraper-v1.js
instead to enable color highlighting.
Fixed!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It appears there is an extra curly bracket on line 12