forked from hellokuku/xiaohuangji
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#-*-coding:utf-8-*- | ||
|
||
# 人人的登录密码加密算法 | ||
|
||
# 分段加密 | ||
CHUNK_SIZE = 30 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#-*-coding:utf-8-*- | ||
|
||
# 人人各种接口 | ||
|
||
import requests | ||
import json | ||
import re | ||
|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#-*-coding:utf-8-*- | ||
|
||
# 从simsimi读数据 | ||
|
||
import requests | ||
import cookielib | ||
|
||
|