擅长:python、mysql、java
<p>您可以使用像<code>selenium</code>这样的库来实现这一点</p>
<p>例如:</p>
<pre><code>from selenium import webdriver
from bs4 import BeautifulSoup as bs
driver = webdriver.Firefox()
driver.get("https://www.cbn.gov.ng/rates/ExchRateByCurrency.asp")
html = driver.page_source
print(html.find("div",id="ContentTextinner"))
driver.quit()
</code></pre>