我正在使用 Beautiful Soup,但不知道该怎么做。
</td>
<td class="playbuttonCell">
<a class="playbutton preview-track" href="/music/example" data-analytics-redirect="false" ><img class="transparent_png play_icon" width="13" height="13" alt="Play" src="http://cdn.last.fm/flatness/preview/play_indicator.png" style="" /></a> </td>
<td class="subjectCell" title="example, played 3 times">
<div>
<a href="/music/example" >here lies the text i need</a>
这不是在做这项工作
print soup('a')
for link in soup('a'):
print html
打印所有内容,我还能尝试什么?