From e417ea29d7bdf047f8329d2e4fa5aaa519e6223a Mon Sep 17 00:00:00 2001 From: Lucio Martinez Date: Tue, 28 Nov 2023 10:57:13 +0100 Subject: [PATCH] Add bot platforms --- src/parser-platforms.js | 88 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/src/parser-platforms.js b/src/parser-platforms.js index 15eedac..ddf5b17 100644 --- a/src/parser-platforms.js +++ b/src/parser-platforms.js @@ -18,6 +18,94 @@ export default [ }, }, + /* Alexa */ + { + test: [/ia_archiver/i], + describe() { + return { + type: PLATFORMS_MAP.bot, + vendor: 'Amazon', + }; + }, + }, + + /* Baidu */ + { + test: [/baiduspider/i], + describe() { + return { + type: PLATFORMS_MAP.bot, + vendor: 'Baidu', + }; + }, + }, + + /* Bingbot */ + { + test: [/bingbot/i], + describe() { + return { + type: PLATFORMS_MAP.bot, + vendor: 'Bing', + }; + }, + }, + + /* DuckDuckBot */ + { + test: [/duckduckbot/i], + describe() { + return { + type: PLATFORMS_MAP.bot, + vendor: 'DuckDuckGo', + }; + }, + }, + + /* Facebook */ + { + test: [/facebookexternalhit/i], + describe() { + return { + type: PLATFORMS_MAP.bot, + vendor: 'Facebook', + }; + }, + }, + + /* Yahoo! Slurp */ + { + test: [/yahoo/i], + describe() { + return { + type: PLATFORMS_MAP.bot, + vendor: 'Yahoo', + }; + }, + }, + + /* Yandex */ + { + test: [/yandexbot/i], + describe() { + return { + type: PLATFORMS_MAP.bot, + vendor: 'Yandex', + }; + }, + }, + + /* Pingdom */ + { + test: [/pingdom/i], + describe() { + return { + type: PLATFORMS_MAP.bot, + vendor: 'Pingdom', + }; + }, + }, + /* Huawei */ { test: [/huawei/i],