File tree Expand file tree Collapse file tree 3 files changed +378
-14
lines changed
Expand file tree Collapse file tree 3 files changed +378
-14
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ options.browser_preferences = {
251251
252252这种控制级别以前只有 Chrome 扩展开发者才能使用 - 现在它在你的自动化工具包中!
253253
254- 查看[ 文档] ( https://autoscrape-labs.github.io/pydoll/ features/custom-browser-preferences/ ) 了解更多详情。
254+ 查看[ 文档] ( https://pydoll.tech/docs/zh/ features/# custom-browser-preferences/ ) 了解更多详情。
255255
256256### 新的 ` get_parent_element() ` 方法
257257检索任何 WebElement 的父元素,使导航 DOM 结构更加容易:
Original file line number Diff line number Diff line change @@ -525,12 +525,8 @@ async def main():
525525 async with Chrome() as browser:
526526 # Start the browser once
527527 await browser.start()
528-
529- # Create partial function with browser parameter
530- scrape_with_browser = partial(scrape_page, browser)
531-
532528 # Process all URLs concurrently using the same browser
533- results = await asyncio.gather(* (scrape_with_browser( url) for url in urls))
529+ results = await asyncio.gather(* (scrape_page(browser, url) for url in urls))
534530
535531 # Print results
536532 for result in results:
You can’t perform that action at this time.
0 commit comments