Skip to content

Commit 3d41647

Browse files
committed
[extensions] Update some more bots #780: Better Uptime Bot, SemrushBot, Yahoo! Slurp
1 parent d1105ce commit 3d41647

File tree

3 files changed

+44
-4
lines changed

3 files changed

+44
-4
lines changed

src/extensions/ua-parser-extensions.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const Crawlers = Object.freeze({
7878
/(ia_archiver|archive\.org_bot)\/?([\w\.]*)/i,
7979

8080
// SemrushBot - http://www.semrush.com/bot.html
81-
/((?:semrush|splitsignal)bot[-abcfimostw]*)\/([\w\.-]+)/i,
81+
/((?:semrush|splitsignal)bot[-abcfimostw]*)\/?([\w\.-]*)/i,
8282

8383
// Sogou Spider
8484
/(sogou (?:pic|head|web|orion|news) spider)\/([\w\.]+)/i,
@@ -110,7 +110,7 @@ const Crawlers = Object.freeze({
110110
// Qihoo 360Spider
111111
// TurnitinBot - https://www.turnitin.com/robot/crawlerinfo.html
112112
// Yahoo! Slurp - http://help.yahoo.com/help/us/ysearch/slurp
113-
/\b(360spider-?(?:image|video)?|bytespider|(?:ai2|aspiegel|dataforseo|imagesift|petal|turnitin)bot|teoma|(?=yahoo! )slurp)/i
113+
/\b(360spider-?(?:image|video)?|bytespider|(?:ai2|aspiegel|dataforseo|imagesift|petal|turnitin)bot|teoma|yahoo! slurp)/i
114114
],
115115
[NAME, [TYPE, CRAWLER]]
116116
]
@@ -219,7 +219,7 @@ const Fetchers = Object.freeze({
219219
// AhrefsSiteAudit - https://ahrefs.com/robot/site-audit
220220
// ChatGPT-User - https://platform.openai.com/docs/plugins/bot
221221
// DuckAssistBot - https://duckduckgo.com/duckassistbot/
222-
// BingPreview / Mastodon / Pinterestbot / Redditbot / Rogerbot / SiteAuditBot / Telegrambot / Twitterbot / UptimeRobot
222+
// Better Uptime / BingPreview / Mastodon / Pinterestbot / Redditbot / Rogerbot / SiteAuditBot / Telegrambot / Twitterbot / UptimeRobot
223223
// Google Site Verifier / Meta / Yahoo! Japan
224224
// Yandex Bots - https://yandex.com/bots
225225
/(ahrefssiteaudit|bingpreview|chatgpt-user|mastodon|(?:discord|duckassist|linkedin|pinterest|reddit|roger|siteaudit|twitter|uptimero)bot|google-site-verification|meta-externalfetcher|y!?j-dlc|yandex(?:calendar|direct(?:dyn)?|searchshop)|yadirectfetcher)\/([\w\.]+)/i,
@@ -240,7 +240,7 @@ const Fetchers = Object.freeze({
240240

241241
[
242242
// Google Bots / Cohere / Snapchat / Vercelbot / Yandex Bots
243-
/(cohere-ai|vercelbot|feedfetcher-google|google(?:imageproxy|-read-aloud|-pagerenderer|producer)|snap url preview|telegrambot|yandex(?:sitelinks|userproxy))/i
243+
/((?:better uptime |telegram|vercel)bot|cohere-ai|feedfetcher-google|google(?:imageproxy|-read-aloud|-pagerenderer|producer)|snap url preview|yandex(?:sitelinks|userproxy))/i
244244
],
245245
[NAME, [TYPE, FETCHER]],
246246
]

test/data/ua/extension/crawler.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,26 @@
480480
"type" : "crawler"
481481
}
482482
},
483+
{
484+
"desc" : "SemrushBot for Backlink Audit tool",
485+
"ua" : "Mozilla/5.0 (compatible; SemrushBot-BA; +http://www.semrush.com/bot.html)",
486+
"expect" :
487+
{
488+
"name" : "SemrushBot-BA",
489+
"version" : "undefined",
490+
"type" : "crawler"
491+
}
492+
},
493+
{
494+
"desc" : "SemrushBot for On Page SEO Checker tool",
495+
"ua" : "Mozilla/5.0 (compatible; SemrushBot-SI/0.97; +http://www.semrush.com/bot.html)",
496+
"expect" :
497+
{
498+
"name" : "SemrushBot-SI",
499+
"version" : "0.97",
500+
"type" : "crawler"
501+
}
502+
},
483503
{
484504
"desc" : "SemrushBot for ContentShake AI tool",
485505
"ua" : "Mozilla/5.0 (compatible; SemrushBot-OCOB/1; +https://www.semrush.com/bot/)",
@@ -550,6 +570,16 @@
550570
"type" : "crawler"
551571
}
552572
},
573+
{
574+
"desc" : "Yahoo! Slurp",
575+
"ua" : "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp) ",
576+
"expect" :
577+
{
578+
"name" : "Yahoo! Slurp",
579+
"version" : "undefined",
580+
"type" : "crawler"
581+
}
582+
},
553583
{
554584
"desc" : "YandexBot",
555585
"ua" : "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)",

test/data/ua/extension/fetcher.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
"type" : "fetcher"
1010
}
1111
},
12+
{
13+
"desc" : "Better Uptime Bot",
14+
"ua" : "Better Uptime Bot Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36",
15+
"expect" :
16+
{
17+
"name" : "Better Uptime Bot",
18+
"version" : "undefined",
19+
"type" : "fetcher"
20+
}
21+
},
1222
{
1323
"desc" : "BingPreview",
1424
"ua" : "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534+ (KHTML, like Gecko) BingPreview/1.0b",

0 commit comments

Comments
 (0)