renyupeng 4 mesiacov pred
rodič
commit
8a51ed014f

+ 2 - 2
Apietl/email/BytedanceHotMaterial.py

@@ -65,8 +65,8 @@ order by hot_cost desc;
         path = """/data/excel/bytedance_hot_material_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['wanglei@c-top.com.cn',
                       'shiyuke@s-hcst.com',
                       'lihuan@c-top.com.cn']  # 收件人邮箱账号

+ 2 - 2
Apietl/email/KuaishouClipMaterialToQingQMonth.py

@@ -60,8 +60,8 @@ where b.tag_id = 60156
         path = """/data/excel/快手剪辑素材_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['keqingqing@c-top.com.cn', 'shiyuke@s-hcst.com','zhangwei@s-hcst.com']  # 收件人邮箱账号
         # content = "Please check the attachment. "
         msg = MIMEMultipart()

+ 2 - 2
Apietl/email/KuaishouClipMaterialToQingQWeek.py

@@ -59,8 +59,8 @@ where b.tag_id = 60156
         path = """/data/excel/快手剪辑素材_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['keqingqing@c-top.com.cn', 'shiyuke@s-hcst.com','zhangwei@s-hcst.com']  # 收件人邮箱账号
         # content = "Please check the attachment. "
         msg = MIMEMultipart()

+ 2 - 2
Apietl/email/KuaishouHotMaterial.py

@@ -65,8 +65,8 @@ order by hot_cost desc;
         path = """/data/excel/kuaishou_hot_material_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['wanglei@c-top.com.cn',
                       'shiyuke@s-hcst.com',
                       'lihuan@c-top.com.cn']  # 收件人邮箱账号

+ 2 - 2
Apietl/email/KuaishouMaterialToQingQMonth.py

@@ -60,8 +60,8 @@ where b.tag_id = 60155
         path = """/data/excel/快手真人素材_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['keqingqing@c-top.com.cn', 'shiyuke@s-hcst.com','zhangwei@s-hcst.com']  # 收件人邮箱账号
         # content = "Please check the attachment. "
         msg = MIMEMultipart()

+ 2 - 2
Apietl/email/KuaishouMaterialToQingQWeek.py

@@ -59,8 +59,8 @@ where b.tag_id = 60155
         path = """/data/excel/快手真人素材_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['keqingqing@c-top.com.cn', 'shiyuke@s-hcst.com','zhangwei@s-hcst.com']  # 收件人邮箱账号
         # content = "Please check the attachment. "
         msg = MIMEMultipart()

+ 2 - 2
Apietl/email/NewBytedanceAllMaterialFourD.py

@@ -53,8 +53,8 @@ group by t1.material_id;
         path = """/data/excel/NewBytedanceAllMaterialFourD_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['wanglei@c-top.com.cn',
                       'shiyuke@s-hcst.com',
                       'lihuan@c-top.com.cn']  # 收件人邮箱账号

+ 2 - 2
Apietl/email/NewKuaiShouAllMaterialFourD.py

@@ -59,8 +59,8 @@ group by t1.signature;""".format(stat_date=self.stat_date)
         path = """/data/excel/NewKuaiShouAllMaterialFourD_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['wanglei@c-top.com.cn',
                       'shiyuke@s-hcst.com',
                       'lihuan@c-top.com.cn']  # 收件人邮箱账号

+ 2 - 2
Apietl/email/OpenWindowMaterial.py

@@ -41,8 +41,8 @@ group by signature """.format(date=self.stat_date)
         print(sql)
         path = """/data/excel/开屏素材_{stat_date}.xls""".format(stat_date=self.stat_date)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['wanglei@c-top.com.cn', 'shiyuke@s-hcst.com', 'videomanager@c-top.com.cn', 'jiajingbo@s-hcst.com',
                       'renhaozhe@s-hcst.com']  # 收件人邮箱账号
         # content = "Please check the attachment. "

+ 2 - 2
Apietl/email/TidbKuaiShouAllMaterialEffeW.py

@@ -69,8 +69,8 @@ order by single_week_cost desc;
         path = """/data/excel/TidbKuaiShouAllMaterialEffeW_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['wanglei@c-top.com.cn',
                       'shiyuke@s-hcst.com',
                       'lihuan@c-top.com.cn']  # 收件人邮箱账号

+ 2 - 2
Apietl/email/TouTiaoClipMaterialToQingQMonth.py

@@ -60,8 +60,8 @@ where b.tag_id = 60156
         path = """/data/excel/头条剪辑素材_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['keqingqing@c-top.com.cn', 'shiyuke@s-hcst.com','zhangwei@s-hcst.com']  # 收件人邮箱账号
         # content = "Please check the attachment. "
         msg = MIMEMultipart()

+ 2 - 2
Apietl/email/TouTiaoClipMaterialToQingQWeek.py

@@ -61,8 +61,8 @@ where b.tag_id = 60156
         path = """/data/excel/头条剪辑素材_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['keqingqing@c-top.com.cn', 'shiyuke@s-hcst.com','zhangwei@s-hcst.com']  # 收件人邮箱账号
         # content = "Please check the attachment. "
         msg = MIMEMultipart()

+ 2 - 2
Apietl/email/TouTiaoMaterialToQingQMonth.py

@@ -60,8 +60,8 @@ where b.tag_id = 60155
         path = """/data/excel/头条真人素材_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['keqingqing@c-top.com.cn', 'shiyuke@s-hcst.com','zhangwei@s-hcst.com']  # 收件人邮箱账号
         # content = "Please check the attachment. "
         msg = MIMEMultipart()

+ 2 - 2
Apietl/email/TouTiaoMaterialToQingQWeek.py

@@ -60,8 +60,8 @@ where b.tag_id = 60155
         path = """/data/excel/头条真人素材_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['keqingqing@c-top.com.cn', 'shiyuke@s-hcst.com','zhangwei@s-hcst.com']  # 收件人邮箱账号
         # content = "Please check the attachment. "
         msg = MIMEMultipart()

+ 2 - 2
Apietl/email/kwai_caiwu.py

@@ -52,8 +52,8 @@ GROUP BY t1.account_id;
         path = """/data/excel/快手数据_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['caiwu@c-top.com.cn', 'yumengmeng@c-top.com.cn']  # 收件人邮箱账号
         # content = "Please check the attachment. "
         msg = MIMEMultipart()

+ 2 - 2
Apietl/email/send_bytedance_material_report_weekly.py

@@ -82,8 +82,8 @@ from (select clip_company_id,
         path = """/data/excel/toutiao_material_week_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['wanglei@c-top.com.cn',
                       'shiyuke@s-hcst.com',
                       'lihuan@c-top.com.cn',

+ 2 - 2
Apietl/email/send_material_report_weekly.py

@@ -77,8 +77,8 @@ group by t1.signature;""".format(stat_date=self.stat_date)
         path = """/data/excel/kuaishou_material_week_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['wanglei@c-top.com.cn',
                       'shiyuke@s-hcst.com','fengxue@c-top.com.cn',
                       'lihuan@c-top.com.cn','kashipin@s-hcst.com']  # 收件人邮箱账号

+ 2 - 2
Apietl/email/suzaomaterial.py

@@ -45,8 +45,8 @@ on a.signature=b.signature
         path = """/data/excel/塑造素材_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['wanglei@c-top.com.cn']  # 收件人邮箱账号
         # content = "Please check the attachment. "
         msg = MIMEMultipart()

+ 2 - 2
Apietl/email/toutiao_caiwu.py

@@ -51,8 +51,8 @@ GROUP BY t1.account_id;
         path = """/data/excel/头条数据_{stat_date}.xls""".format(stat_date=self.stat_date)
         print(path)
         pd.read_sql(sql, self.OuterConn).to_excel(path, index=False, engine='openpyxl')
-        my_sender = 'renyupeng@c-top.com.cn'  # 发件人邮箱账号
-        my_pass = 'fcyJKkHUyPo6Zztw'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
+        my_sender = 'huichuangsituo@c-top.com.cn'  # 发件人邮箱账号
+        my_pass = 'rfZV5qRfendzM3Ph'  # 发件人邮箱授权码 / 腾讯企业邮箱请使用登陆密码
         recipients = ['caiwu@c-top.com.cn', 'yumengmeng@c-top.com.cn']  # 收件人邮箱账号
         # content = "Please check the attachment. "
         msg = MIMEMultipart()