How to convert searchTwitter results (from library(twitteR)) into a data.frame?

前端 未结 6 1197
鱼传尺愫
鱼传尺愫 2020-12-28 20:50

I am working on saving twitter search results into a database (SQL Server) and am getting an error when I pull the search results from twitteR.

If I execute:

<
6条回答
  •  轮回少年
    2020-12-28 21:38

    I know this is an old question, but still, here is what I think is a ``modern'' version to solve this. Just use the function twListToDf

    gvegayon <- getUser("gvegayon")
    timeline <- userTimeline(gvegayon,n=400)
    tl <- twListToDF(timeline)
    

    Hope it helps

提交回复
热议问题