我正在尝试使用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"})