<jupyter_start><jupyter_text>Silence![![GitHub License](https://img.shields.io/github/license/Dragon1573/PyChallenge-Tips?color=important&label=Licence&style=flat-square)](https://github.com/Dragon1573/PyChallenge-Tips/blob/master/LICENSE)[![Jump to Level 29](https://img.shields.io/badge/Jump%20to-Level%2029-blue?style=flat-square)](http://www.pythonchallenge.com/pc/ring/guido.html)<jupyter_code>from requests import get
response = get(
    'http://www.pythonchallenge.com/pc/ring/guido.html',
    headers={'Authorization': 'Basic cmVwZWF0OnN3aXRjaA=='}
)
print(response.text)<jupyter_output><html>
<head>
  <title>silence!</title>
  <link rel="stylesheet" type="text/css" href="../style.css">
</head>
<body>
	<br><br>
	<center>
	<font color="gold">
	<img src="whoisit.jpg" border="0"/>
</body>
</html>
                                                                  
                                                                                          
                                                                                                        
                                                         
                                                 
                                                                 
                                                                                         
                                      
                                                                                   
                                                                                         
                                                 [...]<jupyter_text>&emsp;&emsp;源代码后面这么大一片空白是怎么回事？尝试统计每行的空格数量。<jupyter_code>blanks = response.text.splitlines()[12:]
blanks = bytes([len(k) for k in blanks])
print(blanks.decode('ISO-8859-1'))<jupyter_output>BZh91AY&SYÙÂp` ./  1LF2hdjUd¹ÆÅRHåZ"º§¹"(Hlá8<jupyter_text>&emsp;&emsp;提取后的信息是一段以`BZ`开头的二进制串，使用`bz2`进行解码。<jupyter_code>from bz2 import decompress
print(decompress(blanks).decode())<jupyter_output>Isn't it clear? I am yankeedoodle!
{'fraction_non_alphanumeric': 0.12821758135016997, 'fraction_numerical': 0.016027197668771247, 'mean_word_length': 1.2150537634408602, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 28, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '656336', 'license': 'MIT', 'n_tokens_mistral': 627, 'n_tokens_neox': 591, 'n_words': 53, 'path': 'src/Part4/Quiz29.ipynb', 'repo_name': 'Drogon1573/PyChallenge-Tips', 'size': '2059'}