Giter Club home page Giter Club logo

Comments (6)

nielsbasjes avatar nielsbasjes commented on August 25, 2024 1

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.

nielsbasjes avatar nielsbasjes commented on August 25, 2024

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.

nielsbasjes avatar nielsbasjes commented on August 25, 2024

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.

nielsbasjes avatar nielsbasjes commented on August 25, 2024

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.

choeflake avatar choeflake commented on August 25, 2024

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.

dinikolop avatar dinikolop commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.