0
我目前正在運行此代碼:BeautifulSoup錯誤
import urllib
from bs4 import BeautifulSoup
htmltext = urllib.urlopen("http://www.fifacoin.com/")
html = htmltext.read()
soup = BeautifulSoup(html)
for item in soup.find_all('tr', {'data-price': True}):
print(item['data-price'])
當我運行這段代碼我沒有得到任何輸出,當我知道有HTML標籤,在他們這些搜索參數上特定的網站。我可能在這裏犯了一個明顯的錯誤,我是Python和BeautifulSoup的新手。
http://stackoverflow.com/questions/8049520/web-scraping-javascript-page-with-python嘗試在這裏找到更多解決方案。 – zhujs