Commit 4e83c4c3 authored by andytnt's avatar andytnt

modify tweet timestamp

parent 1bec139a
...@@ -121,7 +121,7 @@ def Tweet(tw, location, config): ...@@ -121,7 +121,7 @@ def Tweet(tw, location, config):
t.id = int(tw.find("div")["data-item-id"]) t.id = int(tw.find("div")["data-item-id"])
t.id_str = tw.find("div")["data-item-id"] t.id_str = tw.find("div")["data-item-id"]
t.conversation_id = tw.find("div")["data-conversation-id"] t.conversation_id = tw.find("div")["data-conversation-id"]
t.datetime = int(tw.find("span", "_timestamp")["data-time"]) t.datetime = int(tw.find("span", "_timestamp")["data-time-ms"])
t.datestamp = strftime("%Y-%m-%d", localtime(t.datetime)) t.datestamp = strftime("%Y-%m-%d", localtime(t.datetime))
t.timestamp = strftime("%H:%M:%S", localtime(t.datetime)) t.timestamp = strftime("%H:%M:%S", localtime(t.datetime))
t.user_id = int(tw.find("div")["data-user-id"]) t.user_id = int(tw.find("div")["data-user-id"])
......
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