摘要: 一、获取id和class的text() html = urlopen(real_url) bsObj = BeautifulSoup(html) h1 = bsObj.h1.get_text() content = bsObj.find(id="mw-content-text").findAll(" 阅读全文
posted @ 2016-07-17 21:33 半天的半天 阅读(224) 评论(0) 推荐(0) 编辑