Я хочу получить текст между всеми тегами в определенном tr. Я посмотрел на похожие вопросы, но они специфичны для типа тега.
Если я сделаю что-то вроде этого:
for strong_tag in soup.find_all('strong'):
print strong_tag.text
Это для конкретного тега, но как это сделать для полного tr.?
<tr>
<td style="border:0px solid black;padding: 0px 5.4pt;border-color: currentColor windowtext windowtext;border-style: none solid solid;border-width: medium 0pt 0pt;background: white;" width="39">
<p align="center" style="min-height: 8pt; padding: 0px; text-align: center;"> </p>
</td>
<td colspan="7" style="border:0px solid black;vertical-align: top;text-align: left;padding: 0px 5.4pt;border-color: currentColor windowtext windowtext currentColor;border-style: none solid solid none;border-width: medium 0pt 0pt medium;background: white;" width="683">
<ol style="list-style-type: decimal;">
<li>Process the return per standard procedures. Refer to the <a class="jive-link-wiki-small" data-containerid="2456" data-containertype="14" data-objectid="12425" data-objecttype="102" href="https://iconnect.sprint.com/docs/DOC-12425">Sprint Satisfaction Guarantee Procedure</a> for steps.</li>
<li>RMS will reset the eligibility when doing a <strong>Sprint Monthly Installments Return</strong>. If the original transaction was performed in RMS, the system will display a message and advise that a history transaction can be performed or you can proceed with a No History Return</li>
<li>
To reset Monthly Installments upgrade eligibility and process the return:
<ol>
<li>Return the device.</li>
<li>Re-access the account to see if the line is still <strong>upgrade-eligible for Monthly Installments</strong>.</li>
</ol>
<ul>
<ul>
<li><strong>If so,</strong> proceed with the sale as normal.</li>
<li>
If the customer's line is showing as <strong>not upgrade-eligible</strong> for Monthly Installments:
<ol>
<li>Add a note to the customer's account stating the return transaction number and the need for eligibility reset.</li>
<li>Reset the customer's eligibility by using the MSA tablet or through iCare <em><strong>or</strong></em></li>
<li>Contact <strong>NSS</strong> to request an eligibility reset <strong>only</strong> if the reset was <strong>not successful</strong>.<strong> </strong></li>
</ol>
</li>
</ul>
<ul>
<li><span style="font-family: Arial;">Once eligibility is reset, pull up the customer's account again in RMS and process the sale.</span></li>
</ul>
</ul>
</li>
</ol>
</td>
</tr>
Ожидаемый результат:
Текст между всеми тегами