Commit d96863d9 authored by litaolemo's avatar litaolemo

update

parent 853fe621
......@@ -233,7 +233,7 @@ def single_thead(processe,name):
print("processe"+ str(processe) + " " +threading.current_thread().name + " down " + platform + str(count))
if not count_has:
releaser_body["mssage"] = "爬取失败,请检查账号"
rds_save.hset("error",releaser_body["platform"] + "/" +releaser_body["releaserUrl"],json.dumps(releaser_body))
rds_1.hset("error",releaser_body["platform"] + "/" +releaser_body["releaserUrl"],json.dumps(releaser_body))
# if data_list != []:
# output_result(result_Lst=data_list,
......
......@@ -110,6 +110,8 @@ def trans_strtime_to_timestamp(input_time, missing_year=False):
real_time = int(datetime.datetime.strptime(input_time_replace_chinese,
'%Y-%m-%d').timestamp()*1e3)
return real_time
if "+0800 " in input_time:
return int(datetime.datetime.strptime(input_time.replace("+0800 ",""), '%a %b %d %H:%M:%S %Y').timestamp()*1e3)
length = len(input_time)
if real_time is None and length in [8, 9, 10]:
real_time = int(datetime.datetime.strptime(input_time, '%Y-%m-%d').timestamp()*1e3)
......
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