Last active
October 3, 2019 21:46
-
-
Save jsstoni/1aac9c6d5f3acbcb3e1fc9a0c1297971 to your computer and use it in GitHub Desktop.
web scraping basico
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
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