我有一个变量,里面有一些带有html标签的文本。当我在我的页面中显示它时,我想将标签更改为html?我如何才能做到这一点。</a>"
<p id="myP">Here I want to display myVar, so it should be Heading (h1), then paragraph, and the
我在这里使用beautifulSoup抓取数据:https://books.toscrape.com/catalogue/page-1.html,我想获得这本书的具体标题。</a></h3> 我想要得到标题标签里面的内容,它是“阁楼上的光”, 这是我当前的代码 for i in soup.find_all('h3'):
titles = i.getText()我还尝试了这个: for i<