摘要: # -*- coding: utf-8 -*- """ Created on Wed Jan 11 17:21:54 2017 @author: PE-Monitor """ from urllib2 import urlopen from bs4 import BeautifulSoup html =urlopen("https://hao.360.cn/") bsobj =Beautif... 阅读全文
posted @ 2017-01-11 17:57 体育.委员 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 一开始使用了beautifulSoup的get_text()进行字符串的提取,后来一直提取失败,并提示错误为TypeError: 'NoneType' object is not callable 返回了none类型,可能是对Span标签内容的提取产生错误,于是采用name.string进行字符的提 阅读全文
posted @ 2017-01-11 17:34 体育.委员 阅读(4460) 评论(0) 推荐(0) 编辑