Skip to content

Commit

Permalink
添加文件描述
Browse files Browse the repository at this point in the history
  • Loading branch information
wong2 committed Jan 5, 2013
1 parent de68949 commit 3254629
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ai.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#-*-coding:utf-8-*-

# 小黄鸡的ai,先自己尝试处理,没结果则交给simsimi

import time
from simsimi import SimSimi

Expand Down
2 changes: 2 additions & 0 deletions clear.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
from controller import bots
import time

# 用来出错重启前,先清理出错时间段内的通知

while True:
for bot in bots:
process(bot, True)
Expand Down
2 changes: 2 additions & 0 deletions controller.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#-*-coding:utf-8-*-

# 小黄鸡们

from renren import RenRen
from ai import magic
import redis
Expand Down
2 changes: 2 additions & 0 deletions encrypt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#-*-coding:utf-8-*-

# 人人的登录密码加密算法

# 分段加密
CHUNK_SIZE = 30

Expand Down
11 changes: 9 additions & 2 deletions renren.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#-*-coding:utf-8-*-

# 人人各种接口

import requests
import json
import re
Expand Down Expand Up @@ -153,10 +155,15 @@ def addComment(self, data):
print 'comment sent', r.json()
return r.json()

# 访问某人页面
def visit(self, uid):
self.get('http://www.renren.com/' + str(uid) + '/profile')

if __name__ == '__main__':
renren = RenRen()
renren.login('email', 'password')
renren.login('[email protected]', 'renrenren')
#renren.loginByCookie('cookie.txt')
info = renren.getUserInfo()
print 'hello', info['hostname']
print renren.getNotifications()
#print renren.getNotifications()
renren.visit(328748051)
2 changes: 2 additions & 0 deletions simsimi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#-*-coding:utf-8-*-

# 从simsimi读数据

import requests
import cookielib

Expand Down

0 comments on commit 3254629

Please sign in to comment.