本帖最后由 double07 于 2021-4-29 19:01 编辑
[Python] 纯文本查看 复制代码 <td class="rowfollow nowrap" valign="middle" style='padding: 0'><a href="?cat=419"><img src="pic/cattrans.gif" alt="Movie(電影)/HD" title="Movie(電影)/HD" style="background-image: url(pic/category/chd/scenetorrents/cht/moviehd.png);" /></a></td>
<td class="torrenttr" width="100%" align="left"><table class="torrentname" width="100%"><tr class="sticky_top"><td class="torrentimg"><a title="To Be or Not to Be 1942.1080p FLAC x264-Geek" href="details.php?id=479986&hit=1"><img alt="torrent thumbnail" src="https://img9.doubanio.com/view/photo/l_ratio_poster/public/p1339915772.jpg"></a></td><td class="embedded"><img class="sticky" src="pic/trans.gif" alt="Sticky" title="一級置頂" /><img class="sticky" src="pic/trans.gif" alt="Sticky" title="一級置頂" /> <img src="pic/ms_up.gif" align="absmiddle" title="+20%" alt="+20%"> <a title="To Be or Not to Be 1942.1080p FLAC x264-Geek" href="details.php?id=479986&hit=1"><b>To Be or Not to Be 1942.1080p FLAC x264-Geek</b></a> <img class="pro_50pctdown" src="pic/trans.gif" alt="50%" title="50%" /> <img src="pic/trans.gif" class="label_sub" alt="中字" /><br />你逃我也逃 (1942) [Geek预热作品]</td><td width="80" class="embedded" style="text-align: right; " valign="middle"><a href="download.php?id=479986&https=1"><img class="download" src="pic/trans.gif" style='padding-bottom: 2px;' alt="download" title="下載本種" /></a><a id="bookmark0" href="javascript: bookmark(479986,0);" ><img class="delbookmark" src="pic/trans.gif" alt="Unbookmarked" title="收藏" /></a><br /><img src="/pic/imdb.gif" alt="IMDB:" /> <a >8.3</a></td>
</tr></table></td><td class="rowfollow"><b><a href="details.php?id=479986&hit=1&cmtpage=1#startcomments" >11</a></b></td><td class="rowfollow nowrap"><span title="2021-04-18 21:44:44">10天<br />20時</span></td><td class="rowfollow">13.59<br />GB</td><td class="rowfollow" align="center"><b><a href="details.php?id=479986&hit=1&dllist=1#seeders">151</a></b></td>
<td class="rowfollow"><b><a href="details.php?id=479986&hit=1&dllist=1#leechers">1</a></b></td>
<td class="rowfollow"><a href="viewsnatches.php?id=479986"><b>274</b></a></td>
<td class="rowfollow" style="font-weight: bold">--</td><td class="rowfollow"><i>匿名</i></td>
用pycharm debug调试能得到种子数(见图)
但正式运行却这样提示?问题出在哪里?
这应该是问题所在:通过循环对结果一一检查,发现,当“种子数”较少时,会在<a>标签间增加一段颜色代码:<a href="details.php?id=438306&hit=1&dllist=1#seeders"><font color="#ff0000">1</font></a>导致的吧,但怎样解决? |