Coder Social home page Coder Social logo

autoyuketangforhit's Introduction

HiHiHi there 👋

  • 🔭 I’m currently working on ******** , China
  • 🌱 I’m currently learning J2EE ,DataBase
  • 👯 I’m looking to collaborate on 「技术交流」
  • 🤔 I’m looking for help with 「人生经验」
  • 💬 Ask me about 「人生态度」
  • 📫 How to reach me: Telegram, 7*24h when not busy , or [email protected]
  • ⚡ Fun fact: Humanistic History⛪️

Top Languages

xrervip's GitHub stats

My Stats

xrervip's GitHub stats

autoyuketangforhit's People

Contributors

f2quantum avatar keuin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

autoyuketangforhit's Issues

修复二倍速失效的问题

将原来 142行 - 145行的代码换成 :

ac(self.driver).move_to_element(speed_button).perform()`
time.sleep(1)
speed_2 = self.driver.find_element_by_xpath(XPATH_BUTTON_2X_SPEED)
ac(self.driver).move_to_element(speed_2).move_by_offset(5, 5).click().perform()

165行:

current_time += 2

之前点击不成可能是因为获取不到正确的坐标吧

大佬,今天突然获取不到进度条了

大佬,今天突然获取不到进度条了

D:\OneDrive\文档\git\AutoYuketangforHIT-master>D:\OneDrive\文档\git\AutoYuketangforHIT-master\雨课堂forHIT.py
D:\OneDrive\文档\git\AutoYuketangforHIT-master\雨课堂forHIT.py:296: DeprecationWarning: use options instead of chrome_options
self.driver = webdriver.Chrome(chrome_options=chrome_options)

DevTools listening on ws://127.0.0.1:61844/devtools/browser/4848d76b-875b-4180-af14-4d99064af6fc
成功配置chrome驱动
读取json文件
登录雨课堂
成功登录雨课堂
当前课程ID:$4360375$
检测到校验位,已从历史记录中获取链接
全部链接已就绪
https://fzuyjsy.yuketang.cn/pro/lms/85RmuqRaA4M/4360375/video/3942979
正在播放:
任务进度:任务进度元素加载失败
Traceback (most recent call last):
File "D:\OneDrive\文档\git\AutoYuketangforHIT-master\雨课堂forHIT.py", line 369, in
AutoYuketangforHIT(mode)
File "D:\OneDrive\文档\git\AutoYuketangforHIT-master\雨课堂forHIT.py", line 65, in init
self.PlayAllVideo('url_list.txt')
File "D:\OneDrive\文档\git\AutoYuketangforHIT-master\雨课堂forHIT.py", line 79, in PlayAllVideo
self.PlayVideo(url)
File "D:\OneDrive\文档\git\AutoYuketangforHIT-master\雨课堂forHIT.py", line 109, in PlayVideo
self.wait_and_getText(
File "D:\OneDrive\文档\git\AutoYuketangforHIT-master\雨课堂forHIT.py", line 342, in wait_and_getText
element = self.wait_element_path(element_xpath)
File "D:\OneDrive\文档\git\AutoYuketangforHIT-master\雨课堂forHIT.py", line 320, in wait_element_path
element = WebDriverWait(self.driver, 30).until(
File "C:\Users\wu__c\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:

一直卡在等待播放器加载完毕

C:\Users\Administrator\OneDrive - 薅羊毛大学\Desktop\AutoYuketangforHIT-master>py -3.8 run.py
run.py:316: DeprecationWarning: use options instead of chrome_options
self.driver = webdriver.Chrome(chrome_options=chrome_options)

DevTools listening on ws://127.0.0.1:57634/devtools/browser/92634fb0-d3ed-4d6d-8e29-460ce6a72582
成功配置chrome驱动
成功读取配置文件:./config.json
未指定cookie,需要手动登录雨课堂
未登录。请您扫码登录雨课堂,然后按回车键继续……[20428:5064:0901/015702.756:ERROR:device_event_log_impl.cc(214)] [01:57:02.755] USB: usb_service_win.cc:389 Could not read device interface GUIDs: 系统找不到指定的文件。 (0x2)

登录成功!
成功登录雨课堂
当前课程ID:$7490228$
检测到校验位,已从历史记录中获取链接
全部链接已就绪
https://cejlu.yuketang.cn/pro/lms/420002/7490228/video/11569848
正在播放:01外交及其宗旨
任务进度:完成度:7%
该视频需要播放,尝试加速播放
等待播放器加载完毕
Traceback (most recent call last):
File "run.py", line 385, in
AutoYuketangForHIT(mode)
File "run.py", line 85, in init
self.play_video_list('url_list.txt')
File "run.py", line 99, in play_video_list
self.play_video(url)
File "run.py", line 131, in play_video
self.wait_and_get_element_text(XPATH_VIDEO_PLAYER)
File "run.py", line 360, in wait_and_get_element_text
element = self.wait_element_path_loaded(element_xpath)
File "run.py", line 340, in wait_element_path_loaded
element = WebDriverWait(self.driver, 20).until(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:

C:\Users\Administrator\OneDrive - 薅羊毛大学\Desktop\AutoYuketangforHIT-master>pause

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.