mirror of
https://github.com/lancedikson/bowser
synced 2026-02-10 01:50:10 +00:00
feat: Add Line sipder detection
This commit is contained in:
parent
aaa67db25e
commit
b1e02f3434
@ -28,6 +28,7 @@ export const BROWSER_ALIASES_MAP = {
|
||||
InternetArchiveCrawler: 'internetarchivecrawler',
|
||||
'K-Meleon': 'k_meleon',
|
||||
LibreWolf: 'librewolf',
|
||||
Linespider: 'linespider',
|
||||
Maxthon: 'maxthon',
|
||||
'Meta-ExternalAds': 'meta_externalads',
|
||||
'Meta-ExternalAgent': 'meta_externalagent',
|
||||
@ -98,6 +99,7 @@ export const BROWSER_MAP = {
|
||||
internetarchivecrawler: 'InternetArchiveCrawler',
|
||||
k_meleon: 'K-Meleon',
|
||||
librewolf: 'LibreWolf',
|
||||
linespider: 'Linespider',
|
||||
maxthon: 'Maxthon',
|
||||
meta_externalads: 'Meta-ExternalAds',
|
||||
meta_externalagent: 'Meta-ExternalAgent',
|
||||
|
||||
@ -266,6 +266,23 @@ const browsersList = [
|
||||
},
|
||||
},
|
||||
|
||||
/* Linespider */
|
||||
{
|
||||
test: [/linespider/i],
|
||||
describe(ua) {
|
||||
const browser = {
|
||||
name: 'Linespider',
|
||||
};
|
||||
const version = Utils.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua);
|
||||
|
||||
if (version) {
|
||||
browser.version = version;
|
||||
}
|
||||
|
||||
return browser;
|
||||
},
|
||||
},
|
||||
|
||||
/* AmazonBot */
|
||||
{
|
||||
test: [/amazonbot/i],
|
||||
|
||||
@ -18,6 +18,17 @@ export default [
|
||||
},
|
||||
},
|
||||
|
||||
/* LineSpider */
|
||||
{
|
||||
test: [/linespider/i],
|
||||
describe() {
|
||||
return {
|
||||
type: PLATFORMS_MAP.bot,
|
||||
vendor: 'Line',
|
||||
};
|
||||
},
|
||||
},
|
||||
|
||||
/* AmazonBot */
|
||||
{
|
||||
test: [/amazonbot/i],
|
||||
|
||||
@ -3052,6 +3052,30 @@
|
||||
type: "bot"
|
||||
vendor: "Slack"
|
||||
engine: {}
|
||||
Linespider:
|
||||
-
|
||||
ua: "Mozilla/5.0 (compatible; Linespider/1.1; +https://lin.ee/4dwXkTH)"
|
||||
spec:
|
||||
browser:
|
||||
name: "Linespider"
|
||||
version: "1.1"
|
||||
os: {}
|
||||
platform:
|
||||
type: "bot"
|
||||
vendor: "Line"
|
||||
engine: {}
|
||||
-
|
||||
ua: "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Linespider/1.1; +https://lin.ee/4dwXkTH) Chrome/W.X.Y.Z Safari/537.36"
|
||||
spec:
|
||||
browser:
|
||||
name: "Linespider"
|
||||
version: "1.1"
|
||||
os: {}
|
||||
platform:
|
||||
type: "bot"
|
||||
vendor: "Line"
|
||||
engine:
|
||||
name: "Blink"
|
||||
YahooSlurp:
|
||||
-
|
||||
ua: "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user