<div class="tm-clear tb-hidden tm_brandAttr" id="J_BrandAttr" style="display: block;"><div class="name">品牌名称:<a class="J_EbrandLogo" target="_blank" href="//brand.tmall.com/brandInfo.htm?brandId=588884779&type=0&scm=1048.1.1.4">甜可果园</a></div><a class="tm-collectBtn j_DetailBrand" data-brandid="588884779" href="#" hidefocus="true"><i></i><span>关注</span></a></div>
要获取 甜可果园 这几个字,
方法:
print doc.find('#J_BrandAttr').find('.J_EbrandLogo').text()
brandName=doc.find('#J_BrandAttr .J_EbrandLogo').text()
print brandName
brandName = doc.find('#J_BrandAttr .name .J_EbrandLogo').text()
print brandName
brandName = doc.find('#J_BrandAttr div a').text()
print brandName