DrissionPage
DrissionPage copied to clipboard
基于python的网页自动化工具。既能控制浏览器,也能收发数据包。可兼顾浏览器自动化的便利性和requests的高效率。功能强大,内置无数人性化设计和便捷功能。语法简洁而优雅,代码量少。
DrissionPage.errors.CDPError: 错误:Target crashed 方法:Runtime.evaluate 参数:{'expression': 'navigator.userAgent;', '_timeout': 30} 版本:4.0.4.5 运行时间:1.6875 出现这个错误可能意味着程序有bug,请把错误信息和重现方法告知作者,谢谢。
![32c5e66a783c4bb59bee157642470056](https://github.com/g1879/DrissionPage/assets/42339196/8a08bfb3-1a48-4b46-9802-36d28c07abd6) 网站地址不太方便提供,不过请求前面带有这个标志的,page.listen 监听不到,其他请求有监听到,查了一下,这个标志标识这个请求是通过 ServiceWorker 处理的,希望作者有空可以看一下,如果需要提供原网站,我去征求原作者同意,QQ 私法,作者在评论区回复我一下即可
from DrissionPage import ChromiumPage, ChromiumOptions co = ChromiumOptions() co.set_paths(address='127.0.0.1:3000', local_port=3000) page = ChromiumPage(co) page.get('https://google.com') i am running this code in docker and i have a brower at that ip and...
I have a website which has cloudflare in it and i want to bypass it in headless mode. can someone help me with this. thanks
Traceback (most recent call last): File "D:\PythonApplication\python1\DrissionPage_douyin.py", line 47, in startTask _q_tit.get_screenshot(folder_path + f'dy1.png') File "C:\Program Files\Python38\lib\site-packages\DrissionPage\_elements\chromium_element.py", line 601, in get_screenshot return self.page._get_screenshot(path, name, as_bytes=as_bytes, as_base64=as_base64, full_page=False, File "C:\Program Files\Python38\lib\site-packages\DrissionPage\_pages\chromium_base.py",...
Can someone help me with this? I Have this code running in docker. I dont want it to run headless so could someone help me with to use xvfb. what...
第一次提issues还请多多指教,没有加入full_page参数可以正常使用,加上去就timeout了 错误信息 ![image](https://github.com/g1879/DrissionPage/assets/43907220/ce163ccd-f0e1-4633-b26c-5e9aab3948c1) ``` 發生例外狀況: TimeoutError 错误:timeout 方法:Page.captureScreenshot 参数:{'format': 'jpeg', 'captureBeyondViewport': True, 'clip': {'x': 0, 'y': 0, 'width': 498, 'height': 3296, 'scale': 1}, 'quality': 100, '_timeout': 30} 版本:4.0.4.5 运行时间:3.3284452 出现这个错误可能意味着程序有bug,请把错误信息和重现方法告知作者,谢谢。...
能过cloudflare验证吗?
### Error using Drission page on a ubuntu server (Ubuntu 22.04(LTS) x64) **Code** ``` from DrissionPage import ChromiumPage from DrissionPage import ChromiumOptions from DrissionPage.easy_set import set_headless, set_paths set_headless(True) set_paths('/usr/bin/chromedriver') set_paths(debugger_address='127.0.0.1:9515')...
環境: - raspberry pi 4 只要程序因為報錯而退出,再運行時就很容易出現這個問題。 而且這個問題只要出現,就只有重啟才可以再執行。 ` driver = ChromiumPage(addr_driver_opts=options) # 创建浏览器对象 File "/home/t1me/.local/lib/python3.9/site-packages/DrissionPage/chromium_page.py", line 35, in __init__ super().__init__(addr_driver_opts, tab_id, timeout) File "/home/t1me/.local/lib/python3.9/site-packages/DrissionPage/chromium_base.py", line 50, in __init__ self._connect_browser(tab_id) File...