refactor: 移除代理设置以简化浏览器启动配置
This commit is contained in:
parent
a4682a9647
commit
fc29bddab2
@ -31,10 +31,7 @@ class DailymotionClient:
|
|||||||
|
|
||||||
self._pw = sync_playwright().start()
|
self._pw = sync_playwright().start()
|
||||||
self.browser: Browser = self._pw.chromium.launch(
|
self.browser: Browser = self._pw.chromium.launch(
|
||||||
headless=self.headless,
|
headless=self.headless
|
||||||
proxy={
|
|
||||||
"server": "http://127.0.0.1:7890"
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
self.page: Page = self.browser.new_page()
|
self.page: Page = self.browser.new_page()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user