- Python Web Scraping Cookbook
- Michael Heydt
- 82字
- 2021-06-30 18:44:04
Getting ready
We will read a file named unicode.html from our local web server, located at http://localhost:8080/unicode.html. This file is UTF-8 encoded and contains several sets of characters in different parts of the encoding space. For example, the page looks as follows in your browser:

The Page in the Browser
Using an editor that supports UTF-8, we can see how the Cyrillic characters are rendered in the editor:

The HTML in an Editor
Code for the sample is in 02/06_unicode.py.
推薦閱讀
- 5G承載網(wǎng)網(wǎng)絡規(guī)劃與組網(wǎng)設計
- 物聯(lián)網(wǎng)信息安全
- Learning Karaf Cellar
- 計算機網(wǎng)絡安全實訓教程(第二版)
- SSL VPN : Understanding, evaluating and planning secure, web/based remote access
- 計算機網(wǎng)絡工程實用教程(第2版)
- 區(qū)塊鏈輕松上手:原理、源碼、搭建與應用
- Metasploit Penetration Testing Cookbook
- 物聯(lián)網(wǎng)通信技術(shù)
- 數(shù)字調(diào)制解調(diào)技術(shù)的MATLAB與FPGA實現(xiàn):Altera/Verilog版(第2版)
- Microsoft Dynamics CRM 2011 Applications(MB2-868) Certification Guide
- Hands-On Microservices with Node.js
- 網(wǎng)絡綜合布線(第2版)
- 深入理解Nginx:模塊開發(fā)與架構(gòu)解析
- 5G技術(shù)核心與增強:從R15到R17