$ wc example.log
9999999 173321954 1629465770 example.log
9,999,999 assuming 1 per line.
| #!/usr/bin/env python | |
| import requests | |
| import json | |
| with open('driver-en.js', 'r') as f: | |
| data = f.readlines() | |
| output_list =[] | |
| for counter, record in enumerate(data): |
| def check_date_format(date): | |
| ''' | |
| Check if that date string has a 'MMM DD YYYY' format. Return a boolean. | |
| ''' | |
| output = True | |
| if isinstance(date,unicode) == False: | |
| return False | |
| month, day, year = date.split() | |
| if set(month) >= set(string.ascii_letters): | |
| return False |
| ''' | |
| This module is a script demonstrating some basic features of the | |
| SQLAlchemy ORM declarative base. First shared with the Baltimore | |
| Python meetup 06/19/13. | |
| It requires either a MySQL instance or SQLite to run as written but | |
| you can modify it run with any SQL flavor SQLAlchemy supports. | |
| Alex C. Viana | |
| alexcostaviana [at] gmail [dot] com |
I hereby claim:
To claim this, I am signing this object: