随笔分类 -  python

摘要:最近做一个小项目,实现多个论坛的自动化发帖,总体来说不算太难,但有一些网站有很强的限制,做起来也不容易,今天对遇到的问题做个简单的总结。自动化发帖主要分为两个过程:登陆和发帖1)登陆中实现难点赶集网中cookie比较难获取,以及登陆用https,需要特定设置抓取; 58登陆的实现需要用rsa和md5... 阅读全文
posted @ 2015-01-16 13:25 purejade 阅读(458) 评论(0) 推荐(0)
摘要:python 中exception,class 学习instroduction:Object2 = Object1 ( like java)if Object1 is class object , then copy by reference;if Object1 is basic type, th... 阅读全文
posted @ 2014-11-07 18:34 purejade 阅读(711) 评论(0) 推荐(0)
摘要:常见错误:' '.join(list): it need to guarantee the element of list is string, so it it better it strlist = ''.join(str(v) for v in list)str.split(" ") just... 阅读全文
posted @ 2014-09-05 16:52 purejade 阅读(172) 评论(0) 推荐(0)