Example #1
0
 def mapper(self,line_no,line):
     cell = csv_readline(line)
     if cell[3] == 'redirect':
         today = str(datetime.today())
         today = datetime.strptime(today[0:10],"%Y-%m-%d")
         log_date = datetime.strptime(cell[0][0:10],"%Y-%m-%d")
         if today == log_date:   
         	yield cell[4],1
Example #2
0
 def mapper(self,action,line):
     cell = csv_readline(line)
     yield cell[3], 1
Example #3
0
 def mapper(self,user,line):
     cell = csv_readline(line)
     if cell[3] == 'main':
         yield cell[1],1
Example #4
0
 def user_action(self,line_no,line):
     cell = csv_readline(line)
     yield cell[1],cell[3]
Example #5
0
 def mapper(self,line_no,line):
     cell = csv_readline(line)
     if cell[3] == 'redirect':
         yield cell[4],1