擅长:python、mysql、java
<p>如果使用python selenium,这可能有点晚了
(基于你的标签)你可以这样做(作为2.44.0版)
以下内容:</p>
<pre><code>from selenium import webdriver
# set the driver
driver = webdriver.Firefox()
# get the element
elem = driver.find_element_by_xpath('//table//tr/td/div/div[1]/div/a')
# get the attribute value
link = elem.get_attribute('href')
</code></pre>