-1

htmlを使用して、次からテキストを取得しようとしていますBeautifulSoup

test = '''<p class="author"><a href="./viewtopic.php?p=1829610"></a>by <strong>FinancialDave</a></strong> Thu Oct 17, 2013 12:52 am </p>'''
testsoup = BeautifulSoup(test)
testsoup.text

これにより、次のような結果が得られます。u'by FinancialDave Thu Oct 17, 2013 12:52 am

しかし、私が欲しいのは だけThu Oct 17, 2013 12:52 amです。それを行う方法はありますか?

前もって感謝します。

4

1 に答える 1