我有以下 html,我只想获取产品名称并忽略 html 的其余部分。我该怎么做
我想要这个作为使用 beautifulsoup 的输出Apple iPhone 4 Verizon
<h1 itemprop="itemreviewed">Apple iPhone 4 Verizon
<div class="right">
<span class="s_button_follow_special" style="display: block">
<a href="javascript:;" style="display: block" onclick="subscribe(this, 1, 5132);" class="follow_1_5132 s_button_2 s_button_follow" title="Follow Apple iPhone 4 Verizon"><em class="s_icon s_icon_follow"></em>Follow</a>
<a class="s_button_2 s_button_follow_arrow" href="javascript:;" onclick="subscribe(this, 1, 5132, '', 2);"></a>
</span>
<a href="javascript:;" style="display: none" onclick="subscribe(this, 1, 5132);" class="unfollow_1_5132 s_button_2 s_button_follow_disabled s_button_following" title="Unfollow Apple iPhone 4 Verizon"><span><em class="s_icon s_icon_following"></em>Following</span></a>
</div>
</h1>
header= soup('h1', {'itemprop' : 'itemreviewed'})