Log parsing for cell phone records

Update

So I totally screwed up the code previously, it didnt have any logic to look at only the target phone number so it was just running calculations on the entire log.  Also tossed in some avg calculations for number of calls and time per day for the hell of it.


So I was curious how much time I spend on the phone to certain people, so I decided to write some quick python to figure this out.

 

This is pretty straight forward, change the value for target_number to whatever number in the logs you want to look for then let it rip like so

Leave a Comment