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
49
49
>> > 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'
50
50
>> > parsed_string = user_agent_parser.Parse(ua_string)
51
51
>> > pp.pprint(parsed_string)
52
- { ' device' : { ' brand' : None , ' family' : ' Other ' , ' model' : None },
52
+ { ' device' : { ' brand' : ' Apple ' , ' family' : ' Mac ' , ' model' : ' Mac ' },
53
53
' os' : { ' family' : ' Mac OS X' ,
54
54
' major' : ' 10' ,
55
55
' minor' : ' 9' ,
@@ -105,9 +105,9 @@ Extract Device information from user-agent string
105
105
>> > 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'
106
106
>> > parsed_string = user_agent_parser.ParseDevice(ua_string)
107
107
>> > pp.pprint(parsed_string)
108
- { ' brand' : None ,
109
- ' family' : ' Other ' ,
110
- ' model' : None }
108
+ { ' brand' : ' Apple ' ,
109
+ ' family' : ' Mac ' ,
110
+ ' model' : ' Mac ' }
111
111
112
112
Copyright
113
113
---------
You can’t perform that action at this time.
0 commit comments