0
我想从以下html
一些文字:如何使用<code>BeautifulSoup</code>得到HTML部分文字在Python
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
。有没有办法做到这一点?
在此先感谢。
没有足够的上下文信息。你为什么不简单地手工复制和粘贴日期? – Birei