KIM SIM LAM
KIM SIM LAM
> try using chromium browser Hi @sandrocods , can you eleborate more on this?
目前已经是 3.2.32版本,如下:  看起来没有browser_path 这个argument?  试了这个,也不行。 ```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...