Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s模式下的代理现在都不起作用了。不管是用change_mode()切过去或者开始就用sessionpage #473

Open
dingbs87 opened this issue Dec 27, 2024 · 0 comments

Comments

@dingbs87
Copy link

drissionpage版本:4.1.0.13
python版本:3.12.1

`
from DrissionPage import Chromium,ChromiumOptions
from DrissionPage import SessionPage,SessionOptions

co=ChromiumOptions()
co.set_proxy('http://127.0.0.1:778')
page_d = Chromium(co).latest_tab
print(page_d.mode)
page_d.get('https://google.com')
print(page_d.title)

so=SessionOptions()
so.set_proxies('http://127.0.0.1:778')
page_s = SessionPage(so)
page_s.get('https://google.com')
print(page_s.title)
`
结果是,page_d 结果没问题,page_s报错,url换成baidu.com就可以。另外page_d.change_mode()也会出错。总结就是s模式下的代理不起作用了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant