Browse Source

add 祝福咱们中老年之视频

zhangyong 1 year ago
parent
commit
c895fdec19

+ 0 - 5
zhufuzanmenzhonglaonianzhishipin/zhufuzanmenzhonglaonianzhishipin_recommend/zhufuzanmenzhonglaonianzhishipin_recommend.py

@@ -106,13 +106,10 @@ class Zfzmmzlnzspcheduling:
                         )
 
     def process_video_obj(self, video_obj):
-        # print(type(video_obj))
         video_id = video_obj.get("id", 0)
         video_title = clean_title(video_obj.get("title", "no title"))
         video_time = video_obj.get("v_time", 0)
         publish_time_stamp = int(time.time())
-        # date_object = datetime.strptime(publish_time_stamp, "%Y-%m-%d")
-        # publish_time_stamp = int(time.mktime(date_object.timetuple()))
         publish_time_str = time.strftime(
             "%Y-%m-%d %H:%M:%S", time.localtime(publish_time_stamp)
         )
@@ -179,8 +176,6 @@ class Zfzmmzlnzspcheduling:
             Common.logger(self.log_type, self.crawler).info("视频已下载\n")
             Common.logging(self.log_type, self.crawler, self.env, "视频已下载\n")
         else:
-            # out_video_id = md5(video_title.encode('utf8')).hexdigest()
-            # out_user_id = md5(user_name.encode('utf8')).hexdigest()
             video_dict["out_user_id"] = video_dict["profile_id"]
             video_dict["platform"] = self.crawler
             video_dict["strategy"] = self.log_type