Re: Extract string from log file

2008-08-09 Thread josephtys86
On Aug 9, 11:22 pm, [EMAIL PROTECTED] wrote: > from each line separate out url and request parts. split the request into > key-value pairs, use urllib to unquote key-value pairs..as show below... > > import urllib > line = "GET > /stat.gif?stat=v&c=F-Secure&v=1.1%20Build%2014231&s=av%7BNorton

Extract string from log file

2008-08-09 Thread josephtys86
203.114.10.66 - - [01/Aug/2008:05:41:21 +0300] "GET /stat.gif? stat=v&c=F-Secure&v=1.1%20Build%2014231&s=av%7BNorton %20360%20%28Symantec%20Corporation%29+69%3B%7Dsw%7BNorton %20360%20%28Symantec%20Corporation%29+69%3B%7Dfw%7BNorton %20360%20%28Symantec%20Corporation%29+5%3B%7Dv%7BMicrosoft%20Windo