国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

php - How to capture UA in log files in python
淡淡煙草味
淡淡煙草味 2017-05-16 13:10:35
0
1
500

The log format is as follows
`61.182.137.6 - - [21/Apr/2017:00:00:37 +0800] 0 "HEAD / HTTP/1.1" 200 - "-" "Baidu-YunGuanCe-SLABot( ce.baidu.com)"
123.125.71.89 - - [21/Apr/2017:00:00:38 +0800] 0 "GET /article/515140 HTTP/1.1" 200 10315 "-" "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/s...)"
216.244.66.229 - - [21/Apr/2017:00:00:39 +0800] 0 "GET /article/330012 HTTP/1.1" 200 29593 "-" "Mozilla/5.0 (compatible; DotBot/1.1; http://www.opensiteexplorer.o... help@moz.com)"`

How can python3.5 capture the spider types Baiduspider and DotBot in UA
How to write

淡淡煙草味
淡淡煙草味

reply all(1)
阿神
filename = 'xxx.log'
with open(a) as f:
    for i in f:
        print(re.findall('(?<=compatible; )([^/]+)', i))
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template