
python3
文章平均质量分 68
zhangt85
这个作者很懒,什么都没留下…
展开
-
python刷票
这两天帮助小侄女刷票写了个脚本,如下:#!/usr/bin/pythonimport http.cookiejar, urllibfrom urllib.error import URLError, HTTPErrorimport json,time#投票页面urlindexUrl="http://show.lilyenglish.com/index.php/content?s原创 2015-01-07 18:45:20 · 10680 阅读 · 4 评论 -
python3抓取代理服务器ip
在使用python3爬取网页,解析网页,然后结果入文件,入数据库解析网页用到了BeautifulSoup,入库用到了pymsql当然了这两个都是第三方的库,需要安装具体代码如下:#!/usr/bin/pythonimport urllib.requestimport pymysqlfrom bs4 import BeautifulSoupurl="http://proxy.原创 2015-01-09 11:02:25 · 3363 阅读 · 0 评论