scrapy中的Unicode字符編碼致使lxml解析出錯問題

經過lxml庫的etree.HTML來處理一段網頁源代碼,從而生成一個能夠被xpath解析的對象,出現下面的狀況html response = etree.HTML(response.text) File "lxml.etree.pyx", line 2953, in lxml.etree.HTML (src\lxml\lxml.etree.c:66734) File "parser.px
相關文章
相關標籤/搜索