请问一下
在爬虫的时候,这个文本 (元/月) 用beautifulsoup死活弄不出来
尝试使用get_text()和text , 获取的是1369元/月,但是我想要单独把元/月取出来,应该怎么做呢
使用string确实返回None
from bs4 import BeautifulSoup
html="""
<html><body><span class="price"><em><b class="strongbox" style="font-weight: normal;">1369</b></em>元/月</span>
</body></html>
"""
soup=BeautifulSoup(html,'lxml')
print(soup.string)