关于Python BeautifulSoup 爬取网页信息中文乱码 解决方法

爬取中国基金网数据时中文部分出现乱码 原code如下: url=r'http://data.chinafund.cn/'  urlString= urlopen(url) soup= BeautifulSoup(urlString, 'html.parser') nameList= soup.findAll('div',{'id':'content'})  #print(nameList) for
相关文章
相关标签/搜索