2013年1月7日

北邮人论坛python模拟登录程序

摘要: View Code 1 import urllib2,urllib 2 import sys 3 import cookielib 4 5 def login(): 6 headers = {'User-Agent' : 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14.0.1', 7 'Referer' : '******','Connection':'keep-alive'} 8 url='ht 阅读全文

posted @ 2013-01-07 20:35 mymemory 阅读(273) 评论(0) 推荐(0)

爬取人人网新鲜事python版本

摘要: View Code from sgmllib import SGMLParserimport sys,urllib2,urllib,cookielibclass spider(SGMLParser): def __init__(self,email,password): SGMLParser.__init__(self) self.h3=False self.h3_is_ready=False self.div=False self.h3_and_div=False self.a=False ... 阅读全文

posted @ 2013-01-07 15:32 mymemory 阅读(206) 评论(0) 推荐(0)

导航