KIM SIM LAM

Results 7 comments of KIM SIM LAM

> try using chromium browser Hi @sandrocods , can you eleborate more on this?

目前已经是 3.2.32版本,如下: ![Screenshot 2023-09-20 at 8 01 34 PM](https://github.com/g1879/DrissionPage/assets/11714550/209ffb2e-c88e-41a4-be14-65fac94fa298) 看起来没有browser_path 这个argument? ![Screenshot 2023-09-20 at 8 02 41 PM](https://github.com/g1879/DrissionPage/assets/11714550/95aaed9a-0fb6-4f42-aec0-3f375a43feaa) 试了这个,也不行。 ```python from DrissionPage import ChromiumPage p = ChromiumPage() ``` 是不是我的google-chrome 装错了?要怎么测试?...

试了一下,报了一样的错。是什么possible issue? ```python co = ChromiumOptions().set_paths(browser_path=r'/user/bin/google-chrome').auto_port(True) p = ChromiumPage(co) ```

那可惜了,DrissionPage是我用过最好用的爬虫包,没有之一

> p = ChromiumPage(co) 加了set_headless(True), 也报错了 ```python co = ChromiumOptions().set_paths(browser_path=r'/user/bin/google-chrome').auto_port(True).set_headless(True) p = ChromiumPage(co) ``` ```linux Traceback (most recent call last): File "", line 1, in File "/root/venv/lib/python3.10/site-packages/DrissionPage/chromium_page.py", line 35, in...

> > 遗憾的是,DrissionPage 是我用过最好用的爬虫包,没有之一 > > 我的已经解决了 DrissionPage import ChromiumPage from DrissionPage import ChromiumOptions from DrissionPage.easy_set import set_headless, set_paths set_headless(True) > > co = ChromiumOptions() co.set_paths(browser_path=r'/usr/bin/google-chrome') co.set_argument('--incognito') co.set_argument('--no-sandbox') > >...

> i run on ubuntu, set sandbox > > if you run without display set headless, or you can run with xvfb I have tried adding co.set_argument('--no-sandbox') but it's still...