f_weibo_content: 抓取微博内容

Usage Arguments Details Value Examples

Usage

1
  f_weibo_content(cH=ch0, N=200, hisID='chenyibo', is_e=F)

Arguments

cH

之前登录获得的CurlHandle

N

想要获取的微博条数,概数

hisID

对方的ID

is_e

是否企业版微博

Details

运行完成后,会在工作路径下生成weibo_saved_content_hisID.RData文件,用于后续分析,其中数据集命名为weibo_content

Value

hisID

对方的ID

nick

对方的昵称

weibo_data

微博内容,数据框,两个字段(微博文本内容及微博发布时间)

Examples

1
2
3
4
5
weibo_content1 <- f_weibo_content(cH=ch0, N=100, hisID='chenyibo', is_e=F)
head(weibo_content1$weibo_data)

weibo_content2 <- f_weibo_content(cH=ch0, N=100, hisID='eeocomcn', is_e=T)
head(weibo_content2$weibo_data)

yibochen/weiBor documentation built on May 4, 2019, 2:33 p.m.