chore: resolves linter nag.

This commit is contained in:
towfiqi
2023-11-09 20:35:22 +06:00
parent 9b9b74af4c
commit da92f11afa

View File

@@ -5,10 +5,10 @@ const searchapi:ScraperSettings = {
headers: (keyword, settings) => {
return {
'Content-Type': 'application/json',
'Authorization': `Bearer ${settings.scaping_api}`,
Authorization: `Bearer ${settings.scaping_api}`,
};
},
scrapeURL: (keyword, settings) => {
scrapeURL: (keyword) => {
return `https://www.searchapi.io/api/v1/search?engine=google&q=${encodeURI(keyword.keyword)}&num=100&gl=${keyword.country}&device=${keyword.device}`;
},
resultObjectKey: 'organic_results',