Python铬自动化

2024-10-01 19:25:02 发布

您现在位置:Python中文网/ 问答频道 /正文

我在一系列的树莓上使用下面的脚本来自动执行24/7运行的flash播放器的刷新过程。撇开粗糙的体系结构不谈,下面的代码会产生一长串错误,但仍能按预期工作。你能告诉我发生了什么事吗?你知道吗

import time
import pyautogui
import webbrowser

time.sleep(5)
webbrowser.open('https://www.twitch.tv/admirsrl')
time.sleep(5)
#print(pyautogui.position())

x = True
while x:
    time.sleep(15)
    #pyautogui.click(570, 534)
    pyautogui.hotkey('ctrl', 'r')
    time.sleep(20)
    pyautogui.doubleClick(1200, 800)
    time.sleep(3600)

%Run Py2.py --disable-quic --enable-tcp-fast-open --disable-gpu-compositing --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version= Fontconfig warning: "/etc/fonts/fonts.conf", line 160: blank doesn't take any effect anymore. please remove it from your fonts.conf [31541:31541:0314/092001.506678:ERROR:gpu_process_transport_factory.cc(1029)] Lost UI shared context. [31541:31579:0314/092001.747023:ERROR:in_progress_cache_impl.cc(93)] Could not read download entries from file because there was a read failure. [31541:31630:0314/092001.747725:ERROR:object_proxy.cc(626)] Failed to call method: org.freedesktop.Notifications.GetCapabilities: object_path= /org/freedesktop/Notifications: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files ATTENTION: default value of option force_s3tc_enable overridden by environment. [31635:31635:0314/092003.619083:ERROR:sandbox_linux.cc(375)] InitializeSandbox() called with multiple threads in process gpu-process. [31541:31591:0314/092004.361577:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31591:0314/092004.417101:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31632:0314/092004.955319:ERROR:object_proxy.cc(626)] Failed to call method: org.freedesktop.NetworkManager.GetDevices: object_path= /org/freedesktop/NetworkManager: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files [31541:31632:0314/092004.955424:ERROR:networking_private_linux.cc(733)] Failed to enumerate network devices [31541:31591:0314/092005.372258:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31591:0314/092007.136108:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31591:0314/092023.367717:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31591:0314/092023.695490:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31591:0314/092023.717422:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31591:0314/092024.251022:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31591:0314/092025.412070:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31591:0314/092045.259724:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31591:0314/092046.831293:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31591:0314/092056.915150:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31591:0314/092057.000701:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31591:0314/092059.971408:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31591:0314/092100.005936:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31591:0314/092102.337368:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31591:0314/092102.344826:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) [31541:31632:0314/092112.857288:ERROR:object_proxy.cc(626)] Failed to call method: org.freedesktop.NetworkManager.GetDevices: object_path= /org/freedesktop/NetworkManager: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager was not provided by any .service files [31541:31632:0314/092112.857374:ERROR:networking_private_linux.cc(733)] Failed to enumerate network devices Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged. [31541:31591:0314/092220.948460:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &)


Tags: indatavirtualnotextensionserrorimplementedcc

热门问题