03420 <a href="/kegg-bin/show_pathway?ban03420">Nucleotide excision repair</a><br>
03430 <a href="/kegg-bin/show_pathway?ban03430">Mismatch repair</a><br>
03440 <a href="/kegg-bin/show_pathway?ban03440">Homologous recombination</a><br>
</ul>
</ul>
<!-- -->
<b>Environmental Information Processing</b>
<ul>
Membrane transport
<ul>
02010 <a href="/kegg-bin/show_pathway?ban02010">ABC transporters</a><br>
我需要從使用python的網頁中提取途徑代碼(例如03420,03430等),我已經使用了Beautifulsoup。我想在環境信息處理之前停下來,所以我正在尋找一些可以使用的獨特標籤。 <!-- -->
處於完美的位置,但我無法弄清楚如何在這一點上停下來。有人可以告訴我是否/如何在評論前使用它來停止提取代碼。 (我很新的蟒蛇和html和通俗易懂跳轉到網頁解析如此忍受我請。)當我在html中遇到評論時,如何停止使用Beautifulsoup提取href標籤?
這是一個HTML評論。在很多語言中基本上與'//'或'/ * * /'相同。 –
它是一個評論,請參閱http://stackoverflow.com/questions/2757396/how-do-i-comment-out-a-block-of-tags-in-xml – MrRoth
@TimLewis哦。謝謝。我希望這不是一個評論。 –