python soup提取叶子标签_python3用BeautifulSoup抓取div标签
#-*- coding:utf-8 -*-#python 2.7#XiaoDeng#http://tieba.baidu.com/p/2460150866#标签操作from bs4 importBeautifulSoupimporturllib.requestimportre#如果是网址,可以用这个办法来读取网页#html_doc = "http://tieba.baidu.com/p/24601...