UserAgents.Anonymized.yaml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yauaa Show documentation
Show all versions of yauaa Show documentation
A parsing and analyzing library to get information from a useragent string.
#
# Yet Another UserAgent Analyzer
# Copyright (C) 2013-2018 Niels Basjes
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
config:
- matcher:
require:
- 'agent.product.comments.entry.text="masking-agent"'
extract:
- 'Anonymized : 1:"Anonymized"'
- 'DeviceClass : 1:"Anonymized"'
- 'DeviceName : 1:"Anonymized"'
- 'OperatingSystemClass : 1:"Anonymized"'
- 'OperatingSystemName : 1:"Anonymized"'
- 'OperatingSystemVersion: 1:"Anonymized"'
- test:
input:
user_agent_string: 'Mozilla/5.0 (masking-agent; rv:25.0) Gecko/20100101 Firefox/25.0'
expected:
Anonymized : 'Anonymized'
DeviceClass : 'Anonymized'
DeviceName : 'Anonymized'
DeviceBrand : 'Unknown'
OperatingSystemClass : 'Mobile'
OperatingSystemName : 'Firefox OS'
OperatingSystemVersion : '25.0'
OperatingSystemNameVersion : 'Firefox OS 25.0'
LayoutEngineClass : 'Browser'
LayoutEngineName : 'Gecko'
LayoutEngineVersion : '25.0'
LayoutEngineVersionMajor : '25'
AgentClass : 'Browser'
AgentName : 'Firefox'
AgentVersion : '25.0'
AgentVersionMajor : '25'
AgentNameVersion : 'Firefox 25.0'
AgentNameVersionMajor : 'Firefox 25'
LayoutEngineBuild : '20100101'
LayoutEngineNameVersion : 'Gecko 25.0'
LayoutEngineNameVersionMajor : 'Gecko 25'
- matcher:
require:
- 'agent.(1)product.(1)comments.(1)entry="000000000"'
extract:
- 'Anonymized : 1:"Anonymized"'
- 'DeviceClass : 10:"Anonymized"'
- 'DeviceName : 10:"Anonymized"'
- 'OperatingSystemClass : 10:"Anonymized"'
- 'OperatingSystemName : 10:"Anonymized"'
- 'OperatingSystemVersion: 10:"Anonymized"'
- matcher:
require:
- 'agent.(1)product.(1)comments.(1)entry="0000000000"'
extract:
- 'Anonymized : 1:"Anonymized"'
- 'DeviceClass : 10:"Anonymized"'
- 'DeviceName : 10:"Anonymized"'
- 'OperatingSystemClass : 10:"Anonymized"'
- 'OperatingSystemName : 10:"Anonymized"'
- 'OperatingSystemVersion: 10:"Anonymized"'
- matcher:
require:
- 'agent.product.name[-1]="anonymized"'
extract:
- 'Anonymized : 1:"Anonymized"'
- 'DeviceClass : 10:"Anonymized"'
- 'DeviceName : 10:"Anonymized"'
- 'OperatingSystemClass : 10:"Anonymized"'
- 'OperatingSystemName : 10:"Anonymized"'
- 'OperatingSystemVersion: 10:"Anonymized"'
- matcher:
require:
- 'agent.(1)product.(1)comments.entry.(1)product.(1)name[-1]="anonymized"'
extract:
- 'Anonymized : 1:"Anonymized"'
- test:
input:
user_agent_string: 'Mozilla/5.0 (000000000; 00000 000 00 0 000000) DDDDDDDDDDDDDDDDDDDD DDDDDDD DDDD DDDDDD DDDDDDDDDDDDD DDDDDDDDDDDDDDD'
expected:
DeviceClass : 'Anonymized'
DeviceName : 'Anonymized'
DeviceBrand : 'Unknown'
OperatingSystemClass : 'Anonymized'
OperatingSystemName : 'Anonymized'
OperatingSystemVersion : 'Anonymized'
OperatingSystemNameVersion : 'Anonymized'
LayoutEngineClass : 'Browser'
LayoutEngineName : 'Mozilla'
LayoutEngineVersion : '5.0'
LayoutEngineVersionMajor : '5'
LayoutEngineNameVersion : 'Mozilla 5.0'
LayoutEngineNameVersionMajor : 'Mozilla 5'
AgentClass : 'Browser'
AgentName : '00000'
AgentVersion : '000'
AgentVersionMajor : '000'
AgentNameVersion : '00000 000'
AgentNameVersionMajor : '00000 000'
Anonymized : 'Anonymized'
- test:
input:
user_agent_string: 'Mozilla/5.0 (Windows NT 6.2; rv:28.0) Gecko/20100101 Firefox/28.0 anonymized by Abelssoft 462766946'
expected:
DeviceClass : 'Desktop'
DeviceName : 'Desktop'
DeviceBrand : 'Unknown'
DeviceCpuBits : '32'
OperatingSystemClass : 'Desktop'
OperatingSystemName : 'Windows NT'
OperatingSystemVersion : 'Windows 8'
OperatingSystemNameVersion : 'Windows 8'
LayoutEngineClass : 'Browser'
LayoutEngineName : 'Gecko'
LayoutEngineVersion : '28.0'
LayoutEngineVersionMajor : '28'
LayoutEngineNameVersion : 'Gecko 28.0'
LayoutEngineNameVersionMajor : 'Gecko 28'
LayoutEngineBuild : '20100101'
AgentClass : 'Browser'
AgentName : 'Firefox'
AgentVersion : '28.0'
AgentVersionMajor : '28'
AgentNameVersion : 'Firefox 28.0'
AgentNameVersionMajor : 'Firefox 28'
Anonymized : 'Anonymized'
- test:
input:
user_agent_string: 'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.22 anonymized by Abelssoft 1392034350'
expected:
DeviceClass : 'Desktop'
DeviceName : 'Desktop'
DeviceBrand : 'Unknown'
DeviceCpuBits : '32'
OperatingSystemClass : 'Desktop'
OperatingSystemName : 'Windows NT'
OperatingSystemVersion : 'Windows 8'
OperatingSystemNameVersion : 'Windows 8'
LayoutEngineClass : 'Browser'
LayoutEngineName : 'Blink'
LayoutEngineVersion : '39.0'
LayoutEngineVersionMajor : '39'
LayoutEngineNameVersion : 'Blink 39.0'
LayoutEngineNameVersionMajor : 'Blink 39'
AgentClass : 'Browser'
AgentName : 'Chrome'
AgentVersion : '39.0.2171.95'
AgentVersionMajor : '39'
AgentNameVersion : 'Chrome 39.0.2171.95'
AgentNameVersionMajor : 'Chrome 39'
Anonymized : 'Anonymized'
- test:
input:
user_agent_string: 'Firefox/36.0.3 (x86 en-US); anonymized by Abelssoft 1222574064'
expected:
DeviceClass : 'Anonymized'
DeviceName : 'Anonymized'
DeviceBrand : 'Unknown'
DeviceCpu : 'x86'
DeviceCpuBits : '32'
OperatingSystemClass : 'Anonymized'
OperatingSystemName : 'Anonymized'
OperatingSystemVersion : 'Anonymized'
OperatingSystemNameVersion : 'Anonymized'
LayoutEngineClass : 'Unknown'
LayoutEngineName : 'Unknown'
LayoutEngineVersion : '??'
LayoutEngineVersionMajor : '??'
AgentClass : 'Special'
AgentName : 'Firefox'
AgentVersion : '36.0.3'
AgentVersionMajor : '36'
AgentNameVersion : 'Firefox 36.0.3'
AgentNameVersionMajor : 'Firefox 36'
AgentLanguage : 'English (United States)'
AgentLanguageCode : 'en-us'
Anonymized : 'Anonymized'
# This one got broken while improving the parser
# - test:
# input:
# user_agent_string: 'Mozilla/5.0 (Windows NT 6.2; rv:35.0 () Gecko/20100101 Firefox/35.0 ( anonymized by Abelssoft 152378206'
# expected:
# DeviceClass : 'Desktop'
# DeviceName : 'Desktop'
# OperatingSystemClass : 'Desktop'
# OperatingSystemName : 'Windows NT'
# OperatingSystemVersion : 'Windows 8'
# OperatingSystemNameVersion : 'Windows 8'
# LayoutEngineName : 'Gecko'
# LayoutEngineVersion : '35.0'
# LayoutEngineBuild : '20100101'
# LayoutEngineVersionMajor : '35'
# LayoutEngineNameVersion : 'Gecko 35.0'
# LayoutEngineNameVersionMajor : 'Gecko 35'
# AgentClass : 'Browser'
# AgentName : 'Firefox'
# AgentVersion : '35.0'
# AgentVersionMajor : '35'
# AgentNameVersion : 'Firefox 35.0'
# AgentNameVersionMajor : 'Firefox 35'
- test:
input:
user_agent_string: 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; anonymized by Abelssoft 423514663; BTRS102280; GTB7.5; anonymized by Abelssoft 423514663; .NET CLR 2.0.50727; .NET4.0C; InfoPath.3; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0E)'
expected:
DeviceClass : 'Desktop'
DeviceName : 'Desktop'
DeviceBrand : 'Unknown'
DeviceCpuBits : '32'
OperatingSystemClass : 'Desktop'
OperatingSystemName : 'Windows NT'
OperatingSystemVersion : 'Windows XP'
OperatingSystemNameVersion : 'Windows XP'
LayoutEngineClass : 'Browser'
LayoutEngineName : 'Trident'
LayoutEngineVersion : '4.0'
LayoutEngineVersionMajor : '4'
LayoutEngineNameVersion : 'Trident 4.0'
LayoutEngineNameVersionMajor : 'Trident 4'
AgentClass : 'Browser'
AgentName : 'Internet Explorer'
AgentVersion : '8.0'
AgentVersionMajor : '8'
AgentNameVersion : 'Internet Explorer 8.0'
AgentNameVersionMajor : 'Internet Explorer 8'
Anonymized : 'Anonymized'