Skip to content

Commit 9cf8c93

Browse files
committed
docs: fix and update zh documentation
1 parent 06a8d67 commit 9cf8c93

File tree

3 files changed

+378
-14
lines changed

3 files changed

+378
-14
lines changed

README_zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 结构更加容易:

public/docs/features.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)