mirror of
https://github.com/towfiqi/serpbear
synced 2025-06-26 18:15:54 +00:00
16 lines
645 B
TypeScript
16 lines
645 B
TypeScript
const scrapingRobot:ScraperSettings = {
|
|
id: 'scrapingrobot',
|
|
name: 'Scraping Robot',
|
|
website: 'scrapingrobot.com',
|
|
scrapeURL: (keyword, settings, countryData) => {
|
|
const country = keyword.country || 'US';
|
|
const device = keyword.device === 'mobile' ? '&mobile=true' : '';
|
|
const lang = countryData[country][2];
|
|
const url = encodeURI(`https://www.google.com/search?num=100&hl=${lang}&q=${keyword.keyword}`);
|
|
return `https://api.scrapingrobot.com/?token=${settings.scaping_api}&proxyCountry=${country}&render=false${device}&url=${url}`;
|
|
},
|
|
resultObjectKey: 'result',
|
|
};
|
|
|
|
export default scrapingRobot;
|