- Python Web Scraping Cookbook
- Michael Heydt
- 57字
- 2021-06-30 18:44:04
How it works
In the case of using urlopen, the conversion was explicitly performed by using the str statement and specifying that the content should be converted to UTF-8. For requests, the library was able to determine from the content within the HTML that it was in UTF-8 format by seeing the following tag in the document:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
推薦閱讀
- 物聯(lián)網(wǎng)與北斗應(yīng)用
- CorelDRAW X6 中文版圖形設(shè)計(jì)實(shí)戰(zhàn)從入門到精通
- 物聯(lián)網(wǎng)網(wǎng)絡(luò)安全及應(yīng)用
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見:2015年中國互聯(lián)網(wǎng)安全大會(huì)文集
- PLC、現(xiàn)場總線及工業(yè)網(wǎng)絡(luò)實(shí)用技術(shù)速成
- 計(jì)算機(jī)網(wǎng)絡(luò)工程實(shí)用教程(第2版)
- 世界互聯(lián)網(wǎng)發(fā)展報(bào)告·2019
- 智慧光網(wǎng)絡(luò):關(guān)鍵技術(shù)、應(yīng)用實(shí)踐和未來演進(jìn)
- 通信原理及MATLAB/Simulink仿真
- TD-LTE無線網(wǎng)絡(luò)規(guī)劃與設(shè)計(jì)
- 物聯(lián)網(wǎng)場景設(shè)計(jì)與開發(fā)(初級(jí))
- 高級(jí)網(wǎng)絡(luò)技術(shù)
- Implementing NetScaler VPX?
- Qt5 Python GUI Programming Cookbook
- Microservices Development Cookbook