頁面是:http://item.taobao.com/item.htm?id=13015989524
你可以看到它的源代碼。美麗的湯 - 找不到標籤
在它的源代碼下面的代碼中存在
<a href="http://item.taobao.com/item.htm?id=13015989524" target="_blank">
但是當我使用BeautifulSoup讀取源代碼並執行以下
soup.findAll('a', href="http://item.taobao.com/item.htm?id=13015989524")
它返回[]
空。它返回什麼'[]'?
您可以顯示多一點點你的代碼?你如何檢索URL的內容?如果您嘗試在HTML中查找字符串(不使用BeautifulSoup),它在那裏? – 2012-03-11 03:56:58