RPA+AI 应用案例集合:自动推流直播

使用场景:

  • 自动定时推流直播

使用技术:

  • python
  • playwright

每个解决一个小问题

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\pythonTryEverything\putdonwphone\not_watch_live\douyu\atuo_start_douyu.py", line 453, in <module>
    interface_auo_start_douyu_zhibo(MP4_DIR,2)
  File "D:\pythonTryEverything\putdonwphone\not_watch_live\douyu\atuo_start_douyu.py", line 300, in interface_auo_start_douyu_zhibo
    autoupload.auto_stop_zhibo()
  File "D:\pythonTryEverything\putdonwphone\not_watch_live\douyu\atuo_start_douyu.py", line 81, in auto_stop_zhibo
    self.helper_stop_zhibo(login_page)
  File "D:\pythonTryEverything\putdonwphone\not_watch_live\douyu\atuo_start_douyu.py", line 218, in helper_stop_zhibo
    page.get_by_text("关闭直播").click()
  File "E:\miniconda3\lib\site-packages\playwright\sync_api\_generated.py", line 14764, in click
    self._sync(
  File "E:\miniconda3\lib\site-packages\playwright\_impl\_sync_base.py", line 113, in _sync
    return task.result()
  File "E:\miniconda3\lib\site-packages\playwright\_impl\_locator.py", line 153, in click
    return await self._frame.click(self._selector, strict=True, **params)
  File "E:\miniconda3\lib\site-packages\playwright\_impl\_frame.py", line 488, in click
    await self._channel.send("click", locals_to_params(locals()))
  File "E:\miniconda3\lib\site-packages\playwright\_impl\_connection.py", line 59, in send
    return await self._connection.wrap_api_call(
  File "E:\miniconda3\lib\site-packages\playwright\_impl\_connection.py", line 509, in wrap_api_call
    return await cb()
  File "E:\miniconda3\lib\site-packages\playwright\_impl\_connection.py", line 97, in inner_send
    result = next(iter(done)).result()
playwright._impl._errors.TimeoutError: Timeout 30000ms exceeded.

CMyDouyin is being destroyed

解决办法:

不知道具体原因,不想调试,增加异常处理

  • 写作耗时:15:04 -- 15:30

如果不明白 + v watchpoints

本文由mdnice多平台发布

相关推荐
夏天吃哈密瓜2 小时前
用Scala来解决成绩排名的相关问题
开发语言·后端·scala
爱编程的小生2 小时前
SpringBoot Task
java·spring boot·后端
CoderJia程序员甲2 小时前
重学SpringBoot3-异步编程完全指南
java·spring boot·后端·异步编程
岁岁岁平安2 小时前
springboot实战(19)(条件分页查询、PageHelper、MYBATIS动态SQL、mapper映射配置文件、自定义类封装分页查询数据集)
java·spring boot·后端·mybatis·动态sql·pagehelper·条件分页查询
桃园码工3 小时前
第一章:Go 语言概述 1.什么是 Go 语言? --Go 语言轻松入门
开发语言·后端·golang
萧萧玉树4 小时前
分布式在线评测系统
前端·c++·后端·负载均衡
桃园码工4 小时前
第一章:Go 语言概述 2.安装和配置 Go 开发环境 --Go 语言轻松入门
开发语言·后端·golang
hummhumm5 小时前
第 36 章 - Go语言 服务网格
java·运维·前端·后端·python·golang·java-ee
凡人的AI工具箱5 小时前
40分钟学 Go 语言高并发:Pipeline模式(一)
开发语言·后端·缓存·架构·golang
南鸳6105 小时前
Scala:根据身份证号码,输出这个人的籍贯
开发语言·后端·scala