问题所在a=BeautifulSoup('<p class="t5">₹ 10,000 or $ 133.46</p>')
bencode character '\u20b9' in position 19038: character maps to <undefined> --这是由于这个₹造成的问题,当我们将bs4对象更
我使用Beautifulsoup解析html文件,并检查文本是否为大写,在这种情况下,我将其更改为小写。当我将输出保存到新的html文件时,所做的更改没有反映出来。有人能告诉我我哪里做错了吗?x=x.replace(x,x.string)
with open("\path\) as fp:
soup = BeautifulSoup