このリンクからbeautifulSoupを使用して「Perkins College...」という学校名を取得したいと思います。
私が使用するコードは何も返しません。
school = soup.find('a','profiles-show-school-name-sm-link')
print 'school: ', school
print 'school.text: ', school.text
出力:
school: <a class="profiles-show-school-name-sm-link" href="/profiles/show/online-degrees/stephen-f-austin-state-university/perkins-college-of-education-undergraduate/395/5401">
<img border="0" src="/images/profiles/243x60/4613/degrees/undergraduate-certificate-in-hospitality-administration.png"/>
</a>
school.text:
学校名 (URL ではない) を抽出するための BeautifulSoup 実装の提案はありますか? どうも!