LuTong 3 月之前
父節點
當前提交
41cf4d74e5
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/scraper.py

+ 3 - 1
src/scraper.py

@@ -121,7 +121,9 @@ class Scraper1688:
         page, initial_count = 1, len(all_links)
         page, initial_count = 1, len(all_links)
         
         
         while len(all_links) < total_count + initial_count:
         while len(all_links) < total_count + initial_count:
-            print(f"[*] 列表页采集: 第 {page} 页...")
+            page_anotation = f"[∫] 列表页采集: 第 {page} 页...";
+            print(page_anotation)
+            if self.log_callback: self.log_callback(page_anotation)
             self.driver.get(f"{base_url}&beginPage={page}&page={page}")
             self.driver.get(f"{base_url}&beginPage={page}&page={page}")
             self.check_for_captcha()
             self.check_for_captcha()