文章 35
评论 44
浏览 91123
定时远眺,保护视力程序

定时远眺,保护视力程序

Based on the working time of your mouse, keyboard, and sound devices, automatically prompt for eye rest.(基于鼠标,键盘和声音设备的工作时间的自动化眼睛休息提示工具)

python实现爬取豆瓣豆列中图书的作者,出版社,出版日期,ISBN号

python实现爬取豆瓣豆列中图书的作者,出版社,出版日期,ISBN号

import requests import lxml.etree as etree import time # 可以继续添加其他豆列 urls_all = ["https://www.douban.com/doulist/40421457/?dt_platform=mobile_qq&dt_dapp=1" ] doulist_name = ["涂绘学院"] # headers换成其他的浏览器的headers hearders = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36', } books_all = [] def paqushuju(url): books = [] # 爬取网页中的书名,作者,出版社,出版时间,isbn response = requests.get(url, headers=hearders) html = etree.....

雨课堂视频自动播放python脚本

雨课堂视频自动播放python脚本

本人声明:仅作学习交流使用 前言:雨课堂支持多开同时播放,视频一个一个播放反而效率低,因此这个视频自动播放脚本意图不在于刷课,仅仅是用雨课堂平台作为实验对象进行编程练习而已。 脚本主要功能和实现方法 功能:根据用户给定的课程,自动播放课程内的所有视频。 实现方法:使用python的selenium库在chromeDriver驱动程序下操作chrome浏览器,根据脚本逻辑实现视频播放。 代码 注意:chromedriver.exe驱动程序要放在文件目录下,下载地址根据本地chrome版本选择适合的驱动程序 from selenium import webdriver import time import os import re from configparser import ConfigParser class AutoPlay: def __init__(self): self.filepath = os.getcwd() self.driver = webdriver.Chrome(executable_path=self.filepath + r'\chrome....

Life Is Like A Boat