opener(爬虫的制作方法)
http://python.jobbole.com/77878/
http://www.cnblogs.com/fightformylife/p/4236314.html
问题:UnicodeEncodeError: 'gbk' codec can't encode character '\xa0' in position XXX
解决:f = open("out.html","w",encoding='utf-8')
链接:http://www.jb51.net/article/64816.htm
参考:http://www.cnblogs.com/feng18/p/5646925.html
登陆:csdn
链接:http://blog.csdn.net/yanggd1987/article/details/52127436
URL编码与解码
gzip编码与解码
解决:txt=gzip.decompress(txt).decode('utf-8')
链接:https://zhuanlan.zhihu.com/p/25095566?refer=zjying2000