wangkun 2 years ago
parent
commit
dd2e1a6645
1 changed files with 6 additions and 2 deletions
  1. 6 2
      main/shipinhao_get_url.py

+ 6 - 2
main/shipinhao_get_url.py

@@ -44,8 +44,8 @@ class GetUrl:
         print('退出')
         driver.quit()
 
-        windows = driver.window_handles
-        driver.switch_to.window(windows[0])
+        # windows = driver.window_handles
+        # driver.switch_to.window(windows[0])
 
     @classmethod
     def get_url(cls, log_type):
@@ -88,6 +88,10 @@ class GetUrl:
                     cover_url = cover_url_list[0]['host']+cover_url_list[0]['path']+'?'+cover_url_list[0]['query']
                     head_url = cover_url
 
+                    print(f'video_url:{video_url}')
+                    print(f'cover_url:{cover_url}')
+                    print(f'head_url:{head_url}')
+
                     return video_url, cover_url, head_url
                 else:
                     Common.logger(log_type).info("未找到 url,10s后重新获取")