File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ Retrieve data on a user-agent string
4949 >> > ua_string = ' Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.104 Safari/537.36'
5050 >> > parsed_string = user_agent_parser.Parse(ua_string)
5151 >> > pp.pprint(parsed_string)
52- { ' device' : { ' brand' : None , ' family' : ' Other ' , ' model' : None },
52+ { ' device' : { ' brand' : ' Apple ' , ' family' : ' Mac ' , ' model' : ' Mac ' },
5353 ' os' : { ' family' : ' Mac OS X' ,
5454 ' major' : ' 10' ,
5555 ' minor' : ' 9' ,
@@ -105,9 +105,9 @@ Extract Device information from user-agent string
105105 >> > ua_string = ' Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.104 Safari/537.36'
106106 >> > parsed_string = user_agent_parser.ParseDevice(ua_string)
107107 >> > pp.pprint(parsed_string)
108- { ' brand' : None ,
109- ' family' : ' Other ' ,
110- ' model' : None }
108+ { ' brand' : ' Apple ' ,
109+ ' family' : ' Mac ' ,
110+ ' model' : ' Mac ' }
111111
112112 Copyright
113113---------
You can’t perform that action at this time.
0 commit comments