'commit'
This commit is contained in:
@@ -409,14 +409,14 @@ class TeLaiDianCrawler(BaseCrawler):
|
||||
await asyncio.sleep(1.0)
|
||||
|
||||
# 1. 向上滚动到顶部(不断下拉直到看到最上面的 00:00)
|
||||
logger.info("正在向上滚动价格列表到顶部...")
|
||||
max_scroll_up_to_top = 8
|
||||
logger.info("正在向上滚动价格列表到顶部 (快速多次滚动以尽快看到 00:00)...")
|
||||
max_scroll_up_to_top = 10
|
||||
for i in range(max_scroll_up_to_top):
|
||||
before_scroll_path = take_screenshot(d, f"scroll_up_{i}.jpg")
|
||||
before_scroll_md5 = get_image_content_md5(before_scroll_path)
|
||||
|
||||
d.swipe_ext("down", scale=0.85)
|
||||
await asyncio.sleep(1.5)
|
||||
await asyncio.sleep(0.5)
|
||||
|
||||
after_scroll_path = take_screenshot(d, f"scroll_up_after_{i}.jpg")
|
||||
after_scroll_md5 = get_image_content_md5(after_scroll_path)
|
||||
|
||||
Reference in New Issue
Block a user