[問題] Beautifulsoup解析後中文變成數字已刪文
各位大大好
小的在爬蟲時遇到一個奇怪的問題
之前沒遇過也爬文都沒發現解決方法
res = requests.get('http://www.coolpc.com.tw/evaluate.php')
soup = BeautifulSoup(res.text,'lxml')
不管是
print(res.text)
print(soup)
前半段看起來都很正常
https://imgur.com/a/Jmddm3N
但真正要爬的內容全部都變成數字了
https://imgur.com/a/XRuT2aJ
也有考慮過編碼的問題
res.encoding = res.apparent_encoding
輸入這行後仍沒有改善
所以只能麻煩各位大大了Q
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.112.177.147
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1550326254.A.40A.html