Commit aca1d10f authored by litaolemo's avatar litaolemo

update

parent 6a5725b6
......@@ -52,7 +52,7 @@ def send_email_tome():
# toaddrs6 = "litao@igengmei.com"
content = 'hi all:附件为' + str(date) + '的搜索词数据统计结果以及近一周的数据统计结果,请查收!'
zipFile = "/srv/apps/crawler/近一月数据统计结果.xls"
zipFile = "/srv/apps/crawler/crawler_sys/utils/近一月数据统计结果.xls"
# out_path = "/srv/apps/crawler/近一周数据统计结果.zip"
# f = zipfile.ZipFile(zipFile, 'w', zipfile.ZIP_DEFLATED)
# f.write(out_path)
......@@ -314,7 +314,7 @@ if __name__ == "__main__":
# WritrExcel().write_excel(path, tuple(all_data_day))
# print(u'创建demo.xls文件成功')
date = datetime.datetime.now().date() - datetime.timedelta(days=60)
date = datetime.datetime.now().date() - datetime.timedelta(days=35)
sql = 'select keywords,sum(sorted) as nums,sum(uv) as uvs from api_search_words where is_delete = 0 and create_time >= "' + str(
date) + '" group by keywords order by nums desc'
......
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