'commit'
This commit is contained in:
@@ -248,7 +248,7 @@ async def get_station_list(d, service, max_stations_count=MAX_STATIONS_COUNT):
|
||||
before_scroll_md5 = Kit.get_image_content_md5(before_scroll_path)
|
||||
|
||||
d.swipe_ext("down", scale=0.85)
|
||||
await asyncio.sleep(0.5)
|
||||
await asyncio.sleep(0.3)
|
||||
|
||||
after_scroll_path = take_screenshot(d, f"aite_price_up_after_{i}", save_dir=TEMP_IMAGE_DIR)
|
||||
after_scroll_md5 = Kit.get_image_content_md5(after_scroll_path)
|
||||
@@ -267,7 +267,7 @@ async def get_station_list(d, service, max_stations_count=MAX_STATIONS_COUNT):
|
||||
|
||||
before_dn_md5 = Kit.get_image_content_md5(p_shot)
|
||||
d.swipe_ext("up", scale=0.8)
|
||||
await asyncio.sleep(0.5)
|
||||
await asyncio.sleep(0.3)
|
||||
|
||||
check_dn_path = take_screenshot(d, f"check_dn_{p_idx}", save_dir=TEMP_IMAGE_DIR)
|
||||
after_dn_md5 = Kit.get_image_content_md5(check_dn_path)
|
||||
|
||||
Binary file not shown.
@@ -416,7 +416,7 @@ class TeLaiDianCrawler(BaseCrawler):
|
||||
before_scroll_md5 = get_image_content_md5(before_scroll_path)
|
||||
|
||||
d.swipe_ext("down", scale=0.85)
|
||||
await asyncio.sleep(0.5)
|
||||
await asyncio.sleep(0.3)
|
||||
|
||||
after_scroll_path = take_screenshot(d, f"scroll_up_after_{i}.jpg")
|
||||
after_scroll_md5 = get_image_content_md5(after_scroll_path)
|
||||
|
||||
Binary file not shown.
@@ -325,7 +325,7 @@ async def get_station_list(d, service, uploader, max_stations_count=MAX_STATIONS
|
||||
before_scroll_md5 = Kit.get_image_content_md5(before_scroll_path)
|
||||
|
||||
d.swipe_ext("up", scale=0.8)
|
||||
await asyncio.sleep(0.5)
|
||||
await asyncio.sleep(0.3)
|
||||
|
||||
after_scroll_path = take_screenshot(d, f"scroll_dn_after_{i}", save_dir=TEMP_IMAGE_DIR)
|
||||
after_scroll_md5 = Kit.get_image_content_md5(after_scroll_path)
|
||||
@@ -350,7 +350,7 @@ async def get_station_list(d, service, uploader, max_stations_count=MAX_STATIONS
|
||||
# 检查是否还能向上滚动
|
||||
before_up_md5 = Kit.get_image_content_md5(p_path)
|
||||
d.swipe_ext("down", scale=0.85)
|
||||
await asyncio.sleep(0.5)
|
||||
await asyncio.sleep(0.3)
|
||||
|
||||
# 检查是否还有新内容
|
||||
check_up_path = take_screenshot(d, f"check_up_{p_idx}", save_dir=TEMP_IMAGE_DIR)
|
||||
|
||||
Binary file not shown.
@@ -192,7 +192,7 @@ class YiLaiTeCrawler(BaseCrawler):
|
||||
before_scroll_md5 = get_image_content_md5(before_scroll_path)
|
||||
|
||||
d.swipe_ext("up", scale=0.8)
|
||||
await asyncio.sleep(0.5)
|
||||
await asyncio.sleep(0.3)
|
||||
|
||||
after_scroll_path = take_screenshot(d, f"scroll_dn_after_{i}")
|
||||
after_scroll_md5 = get_image_content_md5(after_scroll_path)
|
||||
@@ -215,7 +215,7 @@ class YiLaiTeCrawler(BaseCrawler):
|
||||
# 检查是否还能向上滚动
|
||||
before_up_md5 = get_image_content_md5(p_shot)
|
||||
d.swipe_ext("down", scale=0.85)
|
||||
await asyncio.sleep(0.5)
|
||||
await asyncio.sleep(0.3)
|
||||
|
||||
# 检查是否还有新内容
|
||||
check_up_shot = take_screenshot(d, f"check_up_{p_idx}")
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user