Python
晨之风
这个作者很懒,什么都没留下…
展开
-
Python 乱码问题研究
Python编码原理和Java类似, Python内部也采用Unicode编码方式来实现。在Python中str 和 unicode都是basestring的子类。Unicode又称万国码, 它采用统一的一套字符集编码所有国家的文字, str可以理解为是unicode字符通过特定字符集编码后的结果,如常见的utf-8、gbk、gb2312、gb18030等Python编码转换了解了上面的知识后,原创 2016-07-05 16:12:08 · 781 阅读 · 0 评论 -
Python 爬虫框架pyspider尝试
安装pyspiderpyspider可以做什么,在这里我不打算多说, 官方有详细文档介绍: 官方文档:http://docs.pyspider.org/en/latest/下面直接上干货:要准备的东西:消息中间件 (all模式必选): rabbitmq、beanstalk、kombu、redis都可以 rabbitmq: http://www.rabbitmq.com/download.h原创 2016-07-09 16:24:07 · 884 阅读 · 0 评论 -
Python爬虫技术汇总
基础技术urllib urllib.quote urllib.urlencodeurllib2 urllib2.HTTPCookieProcessor urllib2.build_openercookielib cookielib.CookieJar进阶技术request request.get request.post s = request.SessionBeautiful So原创 2016-10-08 17:00:50 · 606 阅读 · 0 评论