Yauaa : - - UDF Platfora

A parsing and analyzing library to get information from a useragent string.

License

License

GroupId

GroupId

nl.basjes.parse.useragent
ArtifactId

ArtifactId

yauaa-platfora
Last Version

Last Version

2.2
Release Date

Release Date

Type

Type

jar
Description

Description

Yauaa : - - UDF Platfora
A parsing and analyzing library to get information from a useragent string.
Project URL

Project URL

http://github.com/nielsbasjes/yauaa
Source Code Management

Source Code Management

https://github.com/nielsbasjes/yauaa

Download yauaa-platfora

How to add to project

<!-- https://jarcasting.com/artifacts/nl.basjes.parse.useragent/yauaa-platfora/ -->
<dependency>
    <groupId>nl.basjes.parse.useragent</groupId>
    <artifactId>yauaa-platfora</artifactId>
    <version>2.2</version>
</dependency>
// https://jarcasting.com/artifacts/nl.basjes.parse.useragent/yauaa-platfora/
implementation 'nl.basjes.parse.useragent:yauaa-platfora:2.2'
// https://jarcasting.com/artifacts/nl.basjes.parse.useragent/yauaa-platfora/
implementation ("nl.basjes.parse.useragent:yauaa-platfora:2.2")
'nl.basjes.parse.useragent:yauaa-platfora:jar:2.2'
<dependency org="nl.basjes.parse.useragent" name="yauaa-platfora" rev="2.2">
  <artifact name="yauaa-platfora" type="jar" />
</dependency>
@Grapes(
@Grab(group='nl.basjes.parse.useragent', module='yauaa-platfora', version='2.2')
)
libraryDependencies += "nl.basjes.parse.useragent" % "yauaa-platfora" % "2.2"
[nl.basjes.parse.useragent/yauaa-platfora "2.2"]

Dependencies

compile (1)

Group / Artifact Type Version
nl.basjes.parse.useragent : yauaa jar 2.2

provided (1)

Group / Artifact Type Version
com.platfora.udf » platfora-udf jar 5.2.0-LOCAL

test (2)

Group / Artifact Type Version
org.slf4j : slf4j-log4j12 jar 1.7.25
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Yauaa: Yet Another UserAgent Analyzer

Travis Build status Coverage Status Quality Gate License Maven Central Docker Hub If this project has business value for you then don't hesitate to support me with a small donation.

This is a java library that tries to parse and analyze the useragent string and extract as many relevant attributes as possible.

The full documentation can be found here https://yauaa.basjes.nl

HIGH Profile release notes:

Version 5.18

  • Correctly classify the elements in the Google Chrome (and Chromium based MS Edge) User-Agent string that are incorrect when the "Freeze User-Agent request header" flag is enabled.
  • New UDF for Elastic Search. I have done limited (local single node) testing. Please report anything you find so I can fix it.

Blog post

A bit more background about this useragent parser can be found in this blog which I wrote about it: https://techlab.bol.com/making-sense-user-agent-string/

Example output

As an example the useragent of my phone:

Mozilla/5.0 (Linux; Android 7.0; Nexus 6 Build/NBD90Z) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.124 Mobile Safari/537.36

is converted into this set of fields:

Field name Value
Device Class Phone
Device Name Google Nexus 6
Device Brand Google
Operating System Class Mobile
Operating System Name Android
Operating System Version 7.0
Operating System Name Version Android 7.0
Operating System Version Build NBD90Z
Layout Engine Class Browser
Layout Engine Name Blink
Layout Engine Version 53.0
Layout Engine Version Major 53
Layout Engine Name Version Blink 53.0
Layout Engine Name Version Major Blink 53
Agent Class Browser
Agent Name Chrome
Agent Version 53.0.2785.124
Agent Version Major 53
Agent Name Version Chrome 53.0.2785.124
Agent Name Version Major Chrome 53

Try it!

You can try it online with your own browser here: https://try.yauaa.basjes.nl/.

NOTES

  1. This runs under a "Free quota" on Google AppEngine. If this quota is exceeded then it will simply become unavailable for that day.

  2. After a while of inactivity the instance is terminated so the first page may take 15-30 seconds to load.

  3. If you really like this then run it on your local systems. It's much faster that way. A ready to run docker image that can be used in both local mode and also in Kubernetes: (more info).

    With docker installed do

    docker pull nielsbasjes/yauaa
    docker run -p8080:8080 nielsbasjes/yauaa
    

    and then open

    http://localhost:8080/
    

Related projects

Stefano Balzarotti is putting a lot of effort into porting Yauaa to run in .NET standard.

You can track his efforts here on Github: Yauaa .NET standard and download his releases via Nuget.

Donations

If this project has business value for you then don't hesitate to support me with a small donation.

Donations via PayPal

License

Yet Another UserAgent Analyzer
Copyright (C) 2013-2020 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

https://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.

Versions

Version
2.2
2.1
2.0
1.4
1.3
1.2
1.1
1.0
0.12
0.11
0.10.1
0.9
0.8
0.7
0.6
0.5