Skip to content

Instantly share code, notes, and snippets.

@initFabian
initFabian / _fix_tutorial.py
Last active August 29, 2015 14:23
possible fix for sentdex
for file in each_file:
date_stamp = datetime.strptime(file, '%Y%m%d%H%M%S.html')
unix_time = time.mktime(date_stamp.timetuple())
full_file_path = each_dir+'/'+file
# read file
source = open(full_file_path, 'r').read()
try:
# DONT typecast to float