Skip to content

Instantly share code, notes, and snippets.

@DanNi0130
Last active February 18, 2019 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save DanNi0130/6d43a0610d9943beb154fd1efa5dac02 to your computer and use it in GitHub Desktop.
Save DanNi0130/6d43a0610d9943beb154fd1efa5dac02 to your computer and use it in GitHub Desktop.
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
});
@Nikklz
Copy link

Nikklz commented Nov 7, 2018

It appears there is an extra curly bracket on line 12

@alikrc
Copy link

alikrc commented Nov 12, 2018

12th line is extra, gives error

@AskYous
Copy link

AskYous commented Jan 23, 2019

Rename it to potusScraper-v1.js instead to enable color highlighting.

@DanNi0130
Copy link
Author

Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment