0
我想抓this site,我想檢查所有的錨標籤。BeautifulSoup刮:我很困惑
我已經進口beautifulsoup 4.3.2這裏是我的代碼:
url = """http://www.civicinfo.bc.ca/bids?pn=1"""
Html = urlopen(url).read()
Soup = BeautifulSoup(Html, 'html.parser')
Content = Soup.find_all('a')
我的問題是,內容始終是空的(即含量= [])。有沒有人有任何想法?
轉出限於lxml,它似乎工作。 –
很高興聽到它 – bernie