-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Hi,
I am getting following issue :
{ Error: getaddrinfo ENOTFOUND www.google.comundefined www.google.comundefined:443
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:57:26)
errno: 'ENOTFOUND',
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'www.google.comundefined',
host: 'www.google.comundefined',
port: 443 }
/Users/pankaj/work/genderapp/index.js:27
And here is my code:
const csvFilePath = './names_score_alltime.csv';
const csv = require('csvtojson');
const scraper = require('google-search-scraper');
const DeathByCaptcha = require('deathbycaptcha');
const dbc = new DeathByCaptcha('pankaj2k9', '...mypassord....');
let names = [];
csv()
.fromFile(csvFilePath)
.then((jsonObj) => {
jsonObj.forEach((singleScore) => {
names.push(singleScore.first);
})
})
let options = {
query: 'information theory',
age: 'y',
solver: dbc
};
let urls = [];
scraper.search(options, (err, url) => {
console.log(err);
if (err) throw err;
urls.push(url);
Promise.all(urls).then((values) => {
console.log(values);
});
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels