随笔分类 -  python crawler

python OSError: [Errno 22] Invalid argument: 'D:\\crawle\x01.html1'
摘要:import urllib.request file = urllib.request.open("http://www.baidu.com") data = file.read() print(data) fhandle = open("D:\crawle\html1","wb") fhandle 阅读全文

posted @ 2017-09-29 21:26 JETIME庚 阅读(3029) 评论(1) 推荐(0)

python 最简单的爬虫
摘要:import urllib.request file=urllib.request.urlopen("http://www.qq.com") data=file.read() dataline = file.readline() print(data) print(dataline) 阅读全文

posted @ 2017-09-29 20:38 JETIME庚 阅读(213) 评论(0) 推荐(0)

导航