Python实现一个绝对安全的简易智慧树刷课脚本!给钱帮刷啊( 二 )
<= 0:returntime.sleep(2)driver.find_element_by_class_name('volumeBox').click()except:passtry:ActionChains(driver).move_to_element(driver.find_element_by_class_name('vjs-tech')).perform()except:print('fail')try:driver.find_element_by_class_name('playButton').click()except:passexcept:passtime.sleep(3)# driver.find_element_by_id('/html/body/div[1]/div/div[8]/div/div[1]/button').click()if __name__ == '__main__':window = tk.Tk()window.title('智慧树sb')window.geometry('780x650')canvas = tk.Canvas(window, width=780, height=821, bd=0, highlightthickness=0)title1 = tk.Label(window, bg='yellow', width=20, text='待刷课程网址')title2 = tk.Label(window, bg= 'yellow', width=20, text='学校')title3 = tk.Label(window, bg= 'yellow', width=20, text='学号')title4 = tk.Label(window, bg='yellow', width=20, text='密码')title5 = tk.Label(window, bg='yellow', width=20, text='最大刷课数')canvas.create_window(100, 50, width=100, height=40, window=title1)canvas.create_window(100, 150, width=100, height=40, window=title2)canvas.create_window(100, 250, width=100, height=40, window=title3)canvas.create_window(100, 350, width=100, height=40, window=title4)canvas.create_window(100, 450, width=100, height=40, window=title5)entry1 = tk.Entry(window, bg = 'white')entry2 = tk.Entry(window, bg='white')entry3 = tk.Entry(window, bg='white')entry4 = tk.Entry(window, bg='white')entry5 = tk.Entry(window, bg='white')canvas.create_window(450, 50, width=600, height=40, window=entry1)canvas.create_window(300, 150, width=300, height=40, window=entry2)canvas.create_window(300, 250, width=300, height=40, window=entry3)canvas.create_window(300, 350, width=300, height=40, window=entry4)canvas.create_window(200, 450, width=100, height=40, window=entry5)def start_task():t = task(entry1.get(), entry2.get(), entry3.get(), entry4.get(), entry5.get())if not t.url:tk.messagebox.showinfo('靠 , 出错了', '啊咧咧\n网址还没填呢!')returnif not t.school:tk.messagebox.showinfo('靠 , 出错了', '啊咧咧\n学校还没填呢!')returnif not t.account:tk.messagebox.showinfo('靠 , 出错了', '啊咧咧\n学号还没填呢!')returnif not t.pwd:tk.messagebox.showinfo('靠 , 出错了', '啊咧咧\n密码还没填呢!')returnif not t.max_lesson:t.max_lesson = 10000000try:t.max_lesson = int(t.max_lesson)except:tk.messagebox.showinfo('靠 , 出错了', '啊咧咧\n最大课程数必须填正整数哦')returnout = auto_study(t.url, t.school, t.account, t.pwd, t.max_lesson)if out == -1:tk.messagebox.showinfo('靠 , 出错了', '连接失败!\n请确认网络连接以及链接地址正确\n确认后可再次尝试')returnbutton = tk.Button(window, text="智慧树爆炸按钮", command=start_task)canvas.create_window(400, 550, width=100, height=60, window=button)canvas.pack()window.mainloop()完整项目代码获取后台私信01
- 想实现《曼达洛人》的数字布景吗?索尼模块化屏幕即将开售
- 一个亮点解读 创维小湃P3 Pro必须要买的理由
- 华为认证HCIP-GaussDB-OLTP发布,下一个高级DBA会是你吗
- 又黄一个APP,“品牌收购机”成“没落收割机”,收一黄一
- 想自学Python来开发爬虫,需要按照哪几个阶段制定学习计划
- 教你用Siri来控制电脑:真香
- 未来想进入AI领域,该学习Python还是Java大数据开发
- 快递员工也能当“教授”?上海快递工程技术高级职称评审实现突破
- Google AI建立了一个能够分析烘焙食谱的机器学习模型
- 虾米音乐宣布2月5日关停 人们更关心谁将是下一个