擅长:python、mysql、java
<p>找到表(<a href="http://www.crummy.com/software/BeautifulSoup/documentation.html#Searching%20by%20CSS%20class" rel="noreferrer">by class</a>在本例中),然后找到其中的所有链接。</p>
<pre><code>html = BeautifulSoup(page)
table = html.find('table', 't1')
links = table.findAll('a')
</code></pre>