MCPcopy
hub / github.com/nghuyong/WeiboSpider / parse_time

Function parse_time

weibospider/spiders/common.py:53–57  ·  view source on GitHub ↗

Wed Oct 19 23:44:36 +0800 2022 => 2022-10-19 23:44:36

(s)

Source from the content-addressed store, hash-verified

51
52
53def parse_time(s):
54 """
55 Wed Oct 19 23:44:36 +0800 2022 => 2022-10-19 23:44:36
56 """
57 return dateutil.parser.parse(s).strftime('%Y-%m-%d %H:%M:%S')
58
59
60def parse_user_info(data):

Callers 3

parse_commentMethod · 0.90
parse_user_infoFunction · 0.85
parse_tweet_infoFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected