一連の段落から2つの文を抽出しようとしていますが、行き詰まっています...基本的に、段落は次のようになります。
<p class="some_paragraph">This is a sentence. Here comes another sentence. A third sentence.</p>
<p class="some_paragraph">Another sentence here. Interesting information. Very interesting.</p>
<p class="some_paragraph">This is a sentence. Here comes another sentence. A third sentence.</p>
私がする必要があるのは、これらの3つの段落の9つの文すべてから2つの「最短」の文を見つけることです。抽出された2つの文は、次のスパンに入れる必要があります。
<span class="span1">Shortest sentence comes here</span>
<span class="span2">Second shortest sentence comes here</span>
それ、どうやったら出来るの?