wangkun před 2 roky
rodič
revize
0e3fe05d87
2 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 1 1
      main/publish.py
  2. 2 1
      main/shipinhao_recommend.py

+ 1 - 1
main/publish.py

@@ -135,7 +135,7 @@ class Publish:
         os.rmdir(local_file)
         Common.logger(log_type).info("remove local file dir = {} success".format(local_file))
 
-    local_file_path = './videos'
+    local_file_path = './videos/'
     video_file = 'video'
     image_file = 'image'
     info_file = 'info'

+ 2 - 1
main/shipinhao_recommend.py

@@ -242,7 +242,7 @@ class Recommend:
                     time.sleep(1)
                     Feishu.update_values(log_type, 'shipinhao', 'FSDlBy', 'A2:Z2', values)
                     Common.logger(log_type).info('向上滑动页面')
-                    driver.swipe(500, 1500, 500, 500, 300)
+                    # driver.swipe(500, 1500, 500, 500, 300)
                     Common.logger(log_type).info('视频信息写入飞书文档成功\n')
 
                     while True:
@@ -251,6 +251,7 @@ class Recommend:
                             time.sleep(10)
                         else:
                             Common.logger(log_type).info('URL 信息已更新\n')
+                            driver.swipe(500, 1500, 500, 500, 300)
                             break
         except Exception as e:
             Common.logger(log_type).error('get_feeds异常', e)