def renren():
cj = cookielib.LWPCookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
email = ''
pwd = ''
#登录..
print 'login......'
url = "http://www.renren.com/PLogin.do"
postdata = "email="+email+"&password="+pwd+"&origURL=http%3A%2F%2Fwww.renren.com%2FSysHome.do&domain=renren.com"
req = urllib2.Request(url,postdata)
res = opener.open(req).read()
print 'succeed!'
#得到当前状态
s = r'(?s)id="currentStatus">.*? match = re.search(s, res, re.DOTALL)
if match:
result = match.groups(1)
print 'current status: ', result[0]
renren()
一个用asp+access实现的网络购物系统,商品支持大类和小类操作,每个商品支持图片显示,一般的购物人员在前台登陆系统后可以随便选择商品,当选择去收银台后系统会自动生成订单,管理员登陆系统后可以管理商品分类信息,商品信息,用户信息,订单信息等
0
python怎么学习?python怎么入门?python在哪学?python怎么学才快?不用担心,这里为大家提供了python速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号