rpa m
This commit is contained in:
parent
c8502a7408
commit
beb4b396b8
|
|
@ -161,8 +161,7 @@ async def get_promotion_list_text(page: Page, result: LiveStreamResult,
|
||||||
|
|
||||||
"""
|
"""
|
||||||
logger.debug(f"get_promotion_list_text result: {result}")
|
logger.debug(f"get_promotion_list_text result: {result}")
|
||||||
await page.wait_for_load_state(state='networkidle')
|
|
||||||
logger.debug(f"networkidle,get_promotion_list_text result: {result}")
|
|
||||||
product_name_js, promotion_list_js = await init_load(page)
|
product_name_js, promotion_list_js = await init_load(page)
|
||||||
|
|
||||||
product_sessions: List[ProductSession] = [] # List of ProductSession objects
|
product_sessions: List[ProductSession] = [] # List of ProductSession objects
|
||||||
|
|
@ -543,7 +542,7 @@ with (rpa_image.imports()):
|
||||||
url = f"https://live.douyin.com/{webcast_id}?open_promotion_list=1&from_search=true"
|
url = f"https://live.douyin.com/{webcast_id}?open_promotion_list=1&from_search=true"
|
||||||
# url = f"https://live.douyin.com/{webcast_id}"
|
# url = f"https://live.douyin.com/{webcast_id}"
|
||||||
logger.info(f"Navigating to {url}")
|
logger.info(f"Navigating to {url}")
|
||||||
await page.goto(url, wait_until="domcontentloaded")
|
await page.goto(url)
|
||||||
logger.info(f"Navigating to end {url}")
|
logger.info(f"Navigating to end {url}")
|
||||||
await wait_for_load_state_foo(page, url)
|
await wait_for_load_state_foo(page, url)
|
||||||
result.title = await page.title()
|
result.title = await page.title()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue