From a3bb84e7e08b1cab17340854018c5532a6831cdc Mon Sep 17 00:00:00 2001 From: g1879 Date: Fri, 3 Feb 2023 23:23:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/5_ChromiumPage/1_create_page_object.md | 4 ++-- docs/5_ChromiumPage/8_tab_operation.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/5_ChromiumPage/1_create_page_object.md b/docs/5_ChromiumPage/1_create_page_object.md index 0b47471..1cd6837 100644 --- a/docs/5_ChromiumPage/1_create_page_object.md +++ b/docs/5_ChromiumPage/1_create_page_object.md @@ -52,9 +52,9 @@ page = ChromiumPage() from DrissionPage import ChromiumPage, ChromiumOptions # 创建浏览器配置对象,指定浏览器路径 -do = ChromiumOptions().set_paths(browser_path=r'D:\chrome.exe') +co = ChromiumOptions().set_paths(browser_path=r'D:\chrome.exe') # 用该配置创建页面对象 -page = WebPage(addr_driver_opts=do) +page = ChromiumPage(addr_driver_opts=co) ``` --- diff --git a/docs/5_ChromiumPage/8_tab_operation.md b/docs/5_ChromiumPage/8_tab_operation.md index 83be5b8..4459c34 100644 --- a/docs/5_ChromiumPage/8_tab_operation.md +++ b/docs/5_ChromiumPage/8_tab_operation.md @@ -278,7 +278,7 @@ tab.get('https://www.baidu.com') # 使用标签页对象 而用`ChromiumPage`,点开标签页后焦点无须移动,可直接生成一个新标签页的页面对象,对新页面进行采集,而原来列表页的对象可以继续操作下一个链接。甚至可以用多线程控制多个标签页,实现各种黑科技。 -我们用 gitee 的推进项目页面做个演示:[最新推荐项目 - Gitee.com](https://gitee.com/explore/all) +我们用 gitee 的推荐项目页面做个演示:[最新推荐项目 - Gitee.com](https://gitee.com/explore/all) ```python from DrissionPage import ChromiumPage