数据是从chrome中的History分析出来的,它用的是sqlite数据库,python有接口
import sqlite3
import thread
import time
import datetime
import re
def getHistoryDB():
path='C:\Users\Administrator\AppData\Local\Google\Chrome\User Data\Default\History'
db=sqlite3.connect(path)#将path换自己电脑History的路径
cu=db.cursor()
cu.execute("select url,title,(substr(last_visit_time,1,11)-11644473600) from urls")
result=cu.fetchall()
cu.close()
db.close()
'''
print 'length:'+str(len(result))
# print getTime(result[len(result)-1][2])
#print result[len(result)-1][2]
for x in range(10):
print '---------------'
print getWebsite(result[x][0])
print result[x][1]
print getTime(result[x][2])
#print getTime(result[x