擅长:python、mysql、java
<pre><code>response = urllib2.urlopen(link)
html = response.read()
soup = BeautifulSoup(html,'html.parser',from_encoding='utf-8')
</code></pre>
<p>对于deeplinks:</p>
^{pr2}$
<p>对于标题:</p>
<pre><code>titles = soup.find_all('div',{'class':'activity-card-title'})
</code></pre>
<p>如果块中只有一个标题,则只使用“查找”</p>
<pre><code>title = soup.find('div',{'class':'activity-card-title'})
</code></pre>