爬蟲:模擬瀏覽器報錯解決方法

報錯:UnicodeEncodeError: 'latin-1' codec can't encode character '\u2026' in position 30: ordinal not in range(256) 報錯原因: 解決方案:去掉... 結果:運行正常 第二種解決方法:設置完整的請求頭(見下一篇文章)
相關文章
相關標籤/搜索