Skip to content

Instantly share code, notes, and snippets.

@jsstoni
Last active October 3, 2019 21:46
Show Gist options
  • Save jsstoni/1aac9c6d5f3acbcb3e1fc9a0c1297971 to your computer and use it in GitHub Desktop.
Save jsstoni/1aac9c6d5f3acbcb3e1fc9a0c1297971 to your computer and use it in GitHub Desktop.
web scraping basico
var request = require('request');
request({
method: 'GET',
url: 'https://www.genbeta.com'
}, function (err, res, body) {
if (err) return console.error(err);
var l = body.match('<title>(.*?)<\/title>');
console.log(l[1]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment