Beautifulsoup无法找到Anaconda Python 2.7的excel-download链接

时间:2017-12-28 08:02:35

标签: python web-scraping beautifulsoup

我正在尝试使用Python自动下载excel文件,但我找不到带有Beautifulsoup的excel文件的链接标记。

这是我的代码段:

from urllib2 import urlopen
from bs4 import BeautifulSoup

url = "http://www.sse.com.cn/market/othersdata/margin/detail/"
html = urlopen(url)
soup = BeautifulSoup(html, "lxml")

soup.find_all("a", {"class": "download-export"})

0 个答案:

没有答案