解析站点https://beton24.ru/sochi/beton/时编码有问题
from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen('https://beton24.ru/sochi/beton/')
bs = BeautifulSoup(html.read())
result = bs.findAll("span", "catalog-index__link-text")[1]
parse = str(result)
为了得到混凝土的价格,我将结果转换为str,它变成'from\xa03\u2009836\xa0₽'
面对谁,如何解决?谢谢您!你知道吗
我想你想要的是:
相关问题 更多 >
编程相关推荐