DrissionPage icon indicating copy to clipboard operation
DrissionPage copied to clipboard

基于python的网页自动化工具。既能控制浏览器,也能收发数据包。可兼顾浏览器自动化的便利性和requests的高效率。功能强大,内置无数人性化设计和便捷功能。语法简洁而优雅,代码量少。

Results 272 DrissionPage issues
Sort by recently updated
recently updated
newest added

Ubuntu下可以启动浏览器,但是浏览器并不会显示,只会在任务栏显示一个tab ![QQ截图20240130173919](https://github.com/g1879/DrissionPage/assets/9567310/26557e8a-4cca-4a22-863d-fd49091fe0a3) 下面的是代码,浏览器选项已经保存为默认 `from DrissionPage import ChromiumOptions, ChromiumPage, WebPage` `path = r'/opt/google/chrome/google-chrome'` `# op = ChromiumOptions()` `# op.set_browser_path(path)` `# op.set_local_port(9222)` `# op.set_argument('--no-sandbox')` `# op.save_to_default()` `page = ChromiumPage()` `# page =...

co.set_argument('--guest') 运行过一次后,无论如何设置参数,即使完全不带启动参数,重启电脑,重装 DrissionPage 包后,一直到浏览器设置访客页面,一闪而过

``` print("Starting initialize_browser...") # Set the path to the browser executable browser_path = r"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" # Create ChromiumOptions object options = ChromiumOptions() options.set_argument('--incognito') options.set_argument('--no-sandbox') # proxy_options = { #...

iframe.ele('tx=xxx') 这样好像找不到,只能找到有id的,没有id的有什么方法定位吗?

复现方式: 使用官方网站demo: [https://g1879.gitee.io/drissionpagedocs/get_start/examples/control_browser](https://g1879.gitee.io/drissionpagedocs/get_start/examples/control_browser) 新机安装,Python版本 3.12 直接运行后,控制台报错 ``` exit code -1073741819 (0xC0000005) ``` 本人降级到 python 3.8 解决,没有深入研究为何。

在headless模式下,指定的用户数据无法复用,非headless模式可以,且在非headless模式下执行登录产生的用户数据,切换为headless模式则无法使用,会把指定的路径下内容清空,重新创建Cache_Data和Default文件 ![image](https://github.com/g1879/DrissionPage/assets/42339196/89f22aba-95fe-44c4-b32f-6be526081061) ![1704179331325](https://github.com/g1879/DrissionPage/assets/42339196/606a9934-6266-41fe-8dc4-96fa776cb528)

I'm already updated to `DrissionPage==4.0.0b32` which is the latest version. I want to modify headers of http request. All is fine. Almost all headers can be modified (I haven't tested...

I want to use ChromiumPage in an AWS Lambda function. To do this, I built the image in an ECR repository and linked it with my lambda. But I am...

如题所示: page = ChromiumPage() page.download_set.save_path(download_folder) page.get('https://projects.propublica.org/nonprofits/download-filing?path=05_2021_prefixes_13-13/132947386_202006_990_2021051818124406.pdf') 可以成功打开,但是: page = ChromiumPage() page.download_set.save_path(download_folder) page.download('https://projects.propublica.org/nonprofits/download-filing?path=05_2021_prefixes_13-13/132947386_202006_990_2021051818124406.pdf') 无法下载,报出了403错误 想咨询下download的实现逻辑是没有饶过cloudflare吗? 谢谢。