wangkun 1 year ago
parent
commit
47f7cc0660
1 changed files with 3 additions and 0 deletions
  1. 3 0
      xigua/xigua_search/xigua_search.py

+ 3 - 0
xigua/xigua_search/xigua_search.py

@@ -754,6 +754,9 @@ class XiguasearchScheduling:
                 action.move_to_element(video_elements[-1]).perform()
                 time.sleep(1)
                 driver.get_screenshot_as_file(f"./{crawler}/photos/{page}.png")
+                if page == 50:
+                    Common.logger(log_type, crawler).info(f"{driver.page_source}")
+                    return
 
         for i, video_element in enumerate(video_elements):
             try: