随笔分类 -  爬虫

摘要:转:http://www.cnblogs.com/Lands-ljk/p/5447127.html 1.基本方法 urllib.request.urlopen(url, data=None, [timeout, ]*, cafile=None, capath=None, cadefault=Fals 阅读全文
posted @ 2017-05-03 08:40 君何在 阅读(1035) 评论(0) 推荐(0)
摘要:工具 python3.5 BeautifulSoup 步骤: 1、根据url抓取豆瓣电影html,并解析 2、BeautifulSoup截取节点,写入字典 3、保存字典信息 阅读全文
posted @ 2017-05-02 15:21 君何在 阅读(1776) 评论(0) 推荐(0)
摘要:1、安装python3 2.安装requests库, pip install requests 3.requests 库的使用 3.1 requests的七种使用方法 requests.request() 构造一个人请求,支撑一下的各种方法的基础方法 requests.get() 获取HTML网页的 阅读全文
posted @ 2017-04-24 23:15 君何在 阅读(493) 评论(0) 推荐(0)