西电一键评教助手 github: https://github.com/broholens/AUTO_XDU_EAS网盘: https://pan.baidu.com/s/1gfBYna7A。脚本文件**思路:**1。selenium访问教务系统登陆网站2。用户输入学号密码3。模拟登陆4。访问评教列表页5。依次评教**遇到的问题:**1。元素查找不到,可能点击太频繁被挡或还没加载完全2。有的页面评过了(
UItraISO 装Ubuntu 1、以管理员身份运行UItraISO 2、打开镜像 3、启动–>写入硬盘映像 4、便捷启动–>Syslinux 5、写入遇到的问题: 1、error code 5 –>管理员身份运行 2、设备忙 –> 重新下载UItraISO 3、装好系统重启后左上角只有光标闪动(尚未解决)
爬虫设置代理 介绍两种方法:requests、urllib2import urllib2import lxml.htmlimport requestsurl = 'http://www.ip181.com/'proxy = {'http': 'http://111.13.7.42:82'}'''opener = urllib2.build_opener(urllib2.ProxyHandler(pro
用9kw网站搞定验证码 https://www.9kw.eu/是一个互帮互助的人工识别验证码平台,你需要注册,完成一定的验证码识别后会获得自己的API_KEY。觉得无聊就刷刷分,帮别人,到你用时别人也会帮你。这里贴一些代码,只用将自己的API_KEY填写并将x.PNG更换为想要识别的图片就行。import timeimport reimport urllib2import urllibfrom PIL import
人民的名义 当时追剧的时候写的。www.h6080.com还是由不少好东西。用到了wget和progressbar,需要的朋友可以借鉴下。import requestsfrom lxml import etreeimport refrom multiprocessing import Poolimport wgetimport progressbardef get_page_url(): l
再补充一些BeautifulSoup的 很狗, 评论说类似链接太多, 不让我给上篇评论lis = soup.find('ul', {'class': 'sojob-list'}).findAll('li') for li in lis: title = li.find('span', {'class': 'job-name'}).get('title') href = li.
BeautifulSoup和lxml的基本用法示例 上一篇里面已经有一种方法了,现在再介绍两种def get_input(html): data = {} soup = BeautifulSoup(html, 'html.parser') inputs = soup.form.findAll('input') for input in inputs: if input.get('name'):
python requests登录CSDN(无验证码) 1、设置会话 2、先get,拿到cookie 3、在get到的源码中查找隐藏的要输入的 4、填写自己的登录信息 5、post(同一个会话) 6、登录成功,可利用该会话访问其他# get到的网页中查找隐藏输入def get_input(html): tree = lxml.html.fromstring(html) data = {} for e in tree.c
linux下火狐浏览器不能播放视频 下载Adobe flash player Installing using the plugin tar.gz: o Unpack the plugin tar.gz and copy the files to the appropriate location. o Save the plugin tar.gz locally and note the location the
上传本地文件到github git init git add filename git commit -m “XXX” git remote add origin https://github.com/broholens/b.git git push -u origin master -f
ImportError: cannot import name webdriver 因为在这个Project里新建了一个叫selenium.py的文件 所以导入模块时会先从这个文件中导入 重命名此文件即可
MongoDB安装 1.下载.msi2.自定义安装3.在安装路径下新建文件夹data4.将...\bin添加到系统环境变量5.在cmd中进入所安装的路径\bin6.......\bin>mongod --dbpath ......\data7.另外打开一个cmd 输入mongo 若连接成功 则表示安装成功