Comments (6)
No, there isn't such a command in the library itself.
The main reason is that most fields are extracted values from the useragents. So what you put in is what comes out.
Only for a few specific "high level" fields would this make sense and those seem covered by the mentioned bash command and the documentation https://yauaa.basjes.nl/README-Output.html .
In addition: I see that the mentioned bash command for the most part only provides the values for which I have included testcases. Some of those testcases are hand crafted (i.e. "fake cases"!) by me to ensure the analyzer behaves correctly even in cases I do not have real examples for.
from yauaa.
For the DeviceClass it is already documented in https://github.com/nielsbasjes/yauaa/blob/master/README.md .
For the other fields I'll check what is possible.
from yauaa.
I had a look at the values in the testcases in the project
cat analyzer/src/main/resources/UserAgents/*yaml | fgrep ' :' | grep -v '[0-9] *:' | fgrep -v '#' | sort | uniq -c
and based on that I added a bit more documentation to the README.md
Please indicate if this is what you were looking for.
from yauaa.
I'm closing this because from my perspective this is these are the lists where I actually can provide a complete list of values.
from yauaa.
Thanks! The the following (extended version of @nielsbasjes command) command prints available values for other properties like Operating System Name, or what you want.
cat src/main/resources/UserAgents/*yaml | fgrep ' :' | grep -v '[0-9] *:' | fgrep -v '#' | sort | uniq | sed 's/\s\s//g' | sed 's/\s:/:/g' | egrep 'AgentClass:|AgentName:|DeviceBrand:|DeviceClass:|LayoutEngineName:|OperatingSystemClass:OperatingSystemName:'
from yauaa.
Hi @nielsbasjes ! Very useful bash command.
Is there a way to get a list of possible values for a specified field directly from the library in Java?
from yauaa.
Related Issues (20)
- Handle useragent fakers
- Support Sec-CH-UA-Form-Factor HOT 2
- Make sure the entire Opera set of browsers is supported
- Abstract logging with SLF4j HOT 2
- Incorrect Yahoo crawler HOT 2
- Release a new version with updated dependencies HOT 2
- Fix maven-artifact-plugin 3.5.0 project.build.outputTimestamp error. HOT 3
- Normalize.replaceString is vulnerable to out of denial of service (DoS) attack HOT 1
- AntPathMatcher.match is vulnerable to out of denial of service (DoS) attack HOT 1
- TODO: Remove Antlr4 - Java 21 workaround HOT 2
- Reasons for Windows NT on mobile devices HOT 1
- In k8s+istio environment, parsing does not respond HOT 2
- 系统版本号解析异常 HOT 1
- why not DeviceName is not V2311 HOT 2
- Wrong typification for ZTE T1002 HOT 7
- Errors When Loading Files HOT 4
- Supermium HOT 1
- Frozen SamsungBrowser HOT 9
- Fix long header value in webapp
- Errors When Loading Files. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yauaa.