Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
crawler
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chengyang Zhong
crawler
Commits
d15fee19
Commit
d15fee19
authored
Aug 03, 2020
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
0a71632f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
get_query_result.py
crawler_sys/utils/get_query_result.py
+5
-5
No files found.
crawler_sys/utils/get_query_result.py
View file @
d15fee19
...
...
@@ -52,13 +52,13 @@ def send_email_tome():
content
=
'hi all:附件为'
+
str
(
date
)
+
'的搜索词数据统计结果以及近一周的数据统计结果,请查收!'
zipFile
=
"/srv/apps/crawler/近一周数据统计结果.xls"
out_path
=
"/srv/apps/crawler/近一周数据统计结果.zip"
f
=
zipfile
.
ZipFile
(
zipFile
,
'w'
,
zipfile
.
ZIP_DEFLATED
)
f
.
write
(
out_path
)
f
.
close
()
#
out_path = "/srv/apps/crawler/近一周数据统计结果.zip"
#
f = zipfile.ZipFile(zipFile, 'w', zipfile.ZIP_DEFLATED)
#
f.write(out_path)
#
f.close()
#zipFile = '昨日数据统计结果.xls'
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
:
print
(
e
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment