擅长:python、mysql、java
<p>对</p>
<p>你可以用硒来做</p>
<pre><code>driver.get("https://www.investing.com/equities/exxon-mobil-income-statement")
annual_button = driver.find_element_by_css_selector("#leftColumn > div.alignBottom > div.float_lang_base_1 > a:nth-child(1)")
annual_button.click()
print(driver.find_element_by_css_selector("#rrtable > table").get_attribute('innerHTML'))
</code></pre>
<p>这里有一个python代码</p>
<p>它是干什么的?它进入页面,通过css选择器查找年度按钮元素,然后单击它。然后,它通过css选择器查找表并打印其HTML</p>
<p>希望能有帮助</p>