|
@@ -266,18 +266,23 @@ class GongZongHao:
|
|
|
Common.logger(log_type).info(f"article_url:{article_url}")
|
|
|
Common.logger(log_type).info(f"video_url:{video_url}")
|
|
|
|
|
|
- video_dict = {
|
|
|
- 'video_title': title,
|
|
|
- 'aid': aid,
|
|
|
- 'create_time': create_time,
|
|
|
- 'user_name': user,
|
|
|
- 'user_id': fakeid_dict['fakeid'],
|
|
|
- 'head_url': head_url,
|
|
|
- 'cover_url': cover_url,
|
|
|
- 'article_url': article_url,
|
|
|
- 'video_url': video_url
|
|
|
- }
|
|
|
- cls.download_publish(log_type, video_dict, env)
|
|
|
+ if int(time.time()) - create_time >= 3600*24*3:
|
|
|
+ Common.logger(log_type).info(f'发布时间{time.strftime("%Y/%m/%d %H:%M:%S", time.localtime(create_time))} > 3 天\n')
|
|
|
+ cls.begin = 0
|
|
|
+ return
|
|
|
+ else:
|
|
|
+ video_dict = {
|
|
|
+ 'video_title': title,
|
|
|
+ 'aid': aid,
|
|
|
+ 'create_time': create_time,
|
|
|
+ 'user_name': user,
|
|
|
+ 'user_id': fakeid_dict['fakeid'],
|
|
|
+ 'head_url': head_url,
|
|
|
+ 'cover_url': cover_url,
|
|
|
+ 'article_url': article_url,
|
|
|
+ 'video_url': video_url
|
|
|
+ }
|
|
|
+ cls.download_publish(log_type, video_dict, env)
|
|
|
|
|
|
Common.logger(log_type).info('休眠 10 秒\n')
|
|
|
time.sleep(10)
|