Commit d15fee19 authored by litaolemo's avatar litaolemo

update

parent 0a71632f
...@@ -52,13 +52,13 @@ def send_email_tome(): ...@@ -52,13 +52,13 @@ def send_email_tome():
content = 'hi all:附件为' + str(date) + '的搜索词数据统计结果以及近一周的数据统计结果,请查收!' content = 'hi all:附件为' + str(date) + '的搜索词数据统计结果以及近一周的数据统计结果,请查收!'
zipFile = "/srv/apps/crawler/近一周数据统计结果.xls" zipFile = "/srv/apps/crawler/近一周数据统计结果.xls"
out_path = "/srv/apps/crawler/近一周数据统计结果.zip" # out_path = "/srv/apps/crawler/近一周数据统计结果.zip"
f = zipfile.ZipFile(zipFile, 'w', zipfile.ZIP_DEFLATED) # f = zipfile.ZipFile(zipFile, 'w', zipfile.ZIP_DEFLATED)
f.write(out_path) # f.write(out_path)
f.close() # f.close()
#zipFile = '昨日数据统计结果.xls' #zipFile = '昨日数据统计结果.xls'
send_file_email("","",email_group=["litao@igengmei.com"],title_str=content send_file_email("","",email_group=["litao@igengmei.com"],title_str=content
,email_msg_body_str=content,file=out_path) ,email_msg_body_str=content,file=zipFile)
except Exception as e: except Exception as e:
print(e) print(e)
......
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