se-scraper/examples/quickstart.js
2019-02-27 20:58:13 +01:00

17 lines
384 B
JavaScript

const se_scraper = require('./../index.js');
let config = {
search_engine: 'google',
debug: false,
verbose: false,
keywords: ['news', 'se-scraper'],
num_pages: 1,
output_file: 'data.json',
};
function callback(err, response) {
if (err) { console.error(err) }
console.dir(response, {depth: null, colors: true});
}
se_scraper.scrape(config, callback);