index glassdoor into Elasticsearch
❯ yarn add glasstic
const glasstic = require('glasstic');
const configuration = {
'params': 'action=employers&userip=0.0.0.0&useragent=Mozilla/%2F4.0&country=france',
'proxy': 'localhost:8118'
};
async function save () {
try {
const employers = await glasstic.browse(configuration);
await glasstic.bulk(employers, 'employers');
} catch (e) {
console.error(e);
}
}
save();
The params
of configuration
is based on https://www.glassdoor.com/developer/companiesApiActions.htm