Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chengwei-li/useragent-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

23 Commits

Repository files navigation

useragent-parser

the libary of useragent parser, using to parse infomation of browser,os,device and .net version and so on. this version of parser contains much of special useragent of chinese feature.

example

try{
 String uaString ="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.55 Safari/534.3"
 Parser parser = UserAgentParser.getInstance();
 UserAgentInfo info = parser.getUserAgentInfo(uaString);
 
}catch(IOException e){
 e.printStackTrace();
}

the description of UserAgentInfo is /main/resource/UserAgentInfo.avsc

now, this libary has be using, if having any question in using, please let me know. and i will optimize it using free time.

support

  • 常见浏览器
  • 常见移动设备
  • 网络类型
  • 设备类型,PC/Phone/Pad/TV

增加的设备

  • Huawei P10
  • Huawei P10 Plus
  • QingtingFM

About

the parser of user agent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%

AltStyle によって変換されたページ (->オリジナル) /