1. 程式人生 > >用Beautiful Soup抓取資料的小例子

用Beautiful Soup抓取資料的小例子

a=soup.findAll('div',{'class':'slide-section median-price-subsections trend'},text=None)   #find及findAll 在bs中特別有用。可以根據標籤和屬性找到相應目錄