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

使用Chromium截图时排版出现问题 #100

Open
SisCleaire opened this issue Feb 11, 2023 · 5 comments
Open

使用Chromium截图时排版出现问题 #100

SisCleaire opened this issue Feb 11, 2023 · 5 comments

Comments

@SisCleaire
Copy link

SisCleaire commented Feb 11, 2023

SeleniumConfig如下:

# 截图UA
user_agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36'
# 截图宽度
width: 720
# 截图高度
height: 1558
# 无头模式(后台模式)
headless: true
# 隐藏的web组件(jQ选择器)
hide: 
  - '.open-app'
  - '.launch-app-btn'
  - '.unlogin-popover'
  - '.no-login'
  - '.international-header'
  - '.top-bar'
  - '.m-navbar'

MiraiSeleniumConfig如下:

# 驱动文件过期时间,默认一星期 (单位:天)
expires: 7
# 清理浏览器驱动,默认30 (单位:分钟)
destroy: 30
# 截图UA
user_agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36'
# 截图宽度
width: 720
# 截图高度
height: 1558
# 无头模式(后台模式)
headless: true
# 代理地址
proxy: ''
# User Preferences
preferences: {}

# 启用日志文件
log: false
# 指定使用的浏览器,Chrome/Chromium/Firefox/Edge
browser: 'Chromium'
# 指定使用的Factory
factory: netty
# 自定义 arguments
arguments: []

mirai版本为2.13.3
bilibili-helper版本为1.6.7
mirai-selenium-plugin版本为2.2.5
Chromium版本为Chromium-v100.0.4896.88-r972766-Win64

https://imgloc.com/i/RJ0GC 之前正常的截图
https://imgloc.com/i/RJ27t 现在的截图

@cssxsh
Copy link
Owner

cssxsh commented Feb 11, 2023

为什么不把截图的网址发一下

@SisCleaire
Copy link
Author

https://imgloc.com/i/RJ0GC 之前正常的截图
https://imgloc.com/i/RJ27t 现在的截图

@cssxsh
Copy link
Owner

cssxsh commented Feb 11, 2023

网址

我指的是动态的网址

@SisCleaire
Copy link
Author

@cssxsh cssxsh transferred this issue from cssxsh/mirai-selenium-plugin Feb 11, 2023
@cssxsh
Copy link
Owner

cssxsh commented Feb 11, 2023

本质上是因为我是
基于 iPad 修改的 截图配置

没有对 MaciPhone 进行适配

https://github.com/cssxsh/bilibili-helper#seleniumconfigyml

目前建议你修改为 iPad

之后可能会修改 readme 说明

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

2 participants