- 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">
推薦閱讀
- FreeSWITCH 1.2
- Modern JavaScript Web Development Cookbook
- 數據通信網絡實踐:基礎知識與交換機技術
- 光網絡評估及案例分析
- GPS/GNSS原理與應用(第3版)
- Building RESTful Web Services with Spring 5(Second Edition)
- 大話社交網絡
- 物聯網通信技術
- 網管第一課:網絡操作系統與配置管理
- Getting Started with Memcached
- 深入理解OpenStack Neutron
- 轉化:提升網站流量和轉化率的技巧
- 區塊鏈技術與應用:打造分布式商業新生態
- 網絡信息安全工程技術與應用分析
- 萬物互聯:物聯網核心技術與安全