Skip to content

vanleader/Renren

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Renren
这是一个用于抓取人人网网站数据并做一些分析的R包
几百年没更新了,原谅我吧
======
zip包下载地址:http://vdisk.weibo.com/s/xAbIy

目前主要的函数有:
f_renren_login      登录
f_renren_sns        好友关系网络的可视化

具体使用可以参考帮助文档  

下面是demo:
require(Renren)

# 0、登录
ch0 <- f_renren_login('myemail', 'mypwd')
# 模拟登录失效的时候,可以尝试用cookie文件登录
# 其中的cookie文件可以通过Firefox的Firebug插件获得
ch0 <- f_renren_login(cookie_file='C:/Users/ASUS/Desktop/cookies.txt')

# 1、好友关系网络的可视化
# 运行完成后,会在工作路径下生成renren_mysns_时间.png文件
renren_sns <- f_renren_sns(cH=ch0, topk=3)
head(renren_sns$sns_df)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published