摘要: (一)正则表达式: 1.获取HTML内容: html=urllib.request.urlopen(url) html=html.read().decode('utf-8')——注意编码 2.爬取需要的信息点,提取正则表达式: key=re.compile(r'正则表达式') information 阅读全文
posted @ 2017-10-07 00:23 wgq0_0 阅读(1871) 评论(0) 推荐(0) 编辑