Commit 965d4760 authored by andytnt's avatar andytnt

fix date

parent 91689d0f
......@@ -122,8 +122,8 @@ def Tweet(tw, location, config):
t.id_str = tw.find("div")["data-item-id"]
t.conversation_id = tw.find("div")["data-conversation-id"]
t.datetime = int(tw.find("span", "_timestamp")["data-time-ms"])
t.datestamp = strftime("%Y-%m-%d", localtime(t.datetime))
t.timestamp = strftime("%H:%M:%S", localtime(t.datetime))
t.datestamp = strftime("%Y-%m-%d", localtime(t.datetime/1000.0))
t.timestamp = strftime("%H:%M:%S", localtime(t.datetime/1000.0))
t.user_id = int(tw.find("div")["data-user-id"])
t.user_id_str = tw.find("div")["data-user-id"]
t.username = tw.find("div")["data-screen-name"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment