cdxing In solitude, where we are least alone
摘要: 示例一: import urllib.requesturl = "https://xxxxxx"req = urllib.request.Request('http://www.baidu.com')response = urllib.request.urlopen(req) print(respo 阅读全文
posted @ 2017-07-07 16:22 cdxing 阅读(261) 评论(0) 推荐(0)
摘要: 示例代码:<python3> import urllib.requestimport randomurl = "http://www.cnblogs.com/cdxing" proxy_handler = urllib.request.ProxyHandler({ 'https': 'http:// 阅读全文
posted @ 2017-07-07 16:14 cdxing 阅读(421) 评论(0) 推荐(0)
摘要: 示例代码:<python3版本> import urllibimport urllib.requestimport randommy_headers=["Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko 阅读全文
posted @ 2017-07-07 13:55 cdxing 阅读(7319) 评论(0) 推荐(1)
摘要: 什么是爬虫? 网络爬虫(又被称为网页蜘蛛,网络机器人,在FOAF社区中间,更经常的称为网页追逐者),是一种按照一定的规则,自动地抓取万维网信息的程序或者脚本。另外一些不常使用的名字还有蚂蚁、自动索引、模拟程序或者蠕虫。 其实通俗的讲就是通过程序去获取web页面上自己想要的数据,也就是自动抓取数据 爬 阅读全文
posted @ 2017-07-07 11:09 cdxing 阅读(210) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2017-07-06 09:42 cdxing 阅读(5) 评论(0) 推荐(0)
摘要: set nobackup "覆盖文件时不备份 set ruler "在右下角显示光标位置的状态行 set autoindent "自动缩进 syntax on "语法高亮 set nu " 在左侧行号 set tabstop=4 "tab 长度设置为 4 set nobackup "覆盖文件时不备份 阅读全文
posted @ 2017-07-06 09:35 cdxing 阅读(331) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2017-05-31 17:13 cdxing 阅读(3) 评论(0) 推荐(0)