简体   繁体   English

Search_tweets()(rtweet 包)不返回所有预期的列

[英]Search_tweets() (rtweet package) does not return all expected columns

I'm using the rtweet package and it's not returning the database with all columns with the search_tweets() function.我正在使用 rtweet 包,它没有使用 search_tweets() 函数返回包含所有列的数据库。 The database has only 35 columns and no columns "screen_name" and "mentions_screen_name".数据库只有 35 列,没有列“screen_name”和“mentions_screen_name”。 Please how to get the rest of the columns?请问如何获得其余的列? Below an example the columns returned.下面的示例列返回。

tweets.df <- search_tweets("science") tweets.df <- search_tweets("科学")

names(tweets.df)名称(推文.df)

 [1] "created_at"                    "id"                           
 [3] "id_str"                        "full_text"                    
 [5] "truncated"                     "display_text_range"           
 [7] "entities"                      "metadata"                     
 [9] "source"                        "in_reply_to_status_id"        
[11] "in_reply_to_status_id_str"     "in_reply_to_user_id"          
[13] "in_reply_to_user_id_str"       "in_reply_to_screen_name"      
[15] "geo"                           "coordinates"                  
[17] "place"                         "contributors"                 
[19] "is_quote_status"               "retweet_count"                
[21] "favorite_count"                "favorited"                    
[23] "retweeted"                     "possibly_sensitive"           
[25] "lang"                          "retweeted_status"             
[27] "quoted_status_id"              "quoted_status_id_str"         
[29] "quoted_status"                 "text"                         
[31] "favorited_by"                  "display_text_width"           
[33] "quoted_status_permalink"       "query"                        
[35] "possibly_sensitive_appealable"

You seem to have installed the development version of rtweet 0.7.0 < rtweet > 1.0.0 which is not released yet on CRAN.您似乎已经安装了尚未在 CRAN 上发布的 rtweet 0.7.0 < rtweet > 1.0.0 的开发版本。 Could you post the packageVersion("rtweet") output?你能发布packageVersion("rtweet")输出吗?

The devel version of rtweet returns only the columns returned by the API but the user information is retrieval via users_data(tweets.df) . rtweet 的开发版本仅返回 API 返回的列,但用户信息是通过users_data(tweets.df)检索的。 There you will find the id and screen name of the user who posted the tweets.在那里,您将找到发布推文的用户的 ID 和屏幕名称。 The previous mentions_screen_name is the in_reply_to_screen_name column.前面的mentions_screen_namein_reply_to_screen_name列。 Please make sure that you read the documentation of the version you are using请确保您阅读了您正在使用的版本的文档

This is the version这是版本

packageVersion("rtweet") [1] '0.7.0' packageVersion("rtweet") [1] '0.7.0'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 rtweet“search_tweets”函数不返回坐标 - rtweet "search_tweets" function does not return coordinates R将search_tweets函数(rtweet包)循环到Twitter句柄的向量时出现R身份验证错误 - R Authentication error when looping search_tweets function (rtweet package) over vector of Twitter handles rtweet:如果给定Twitter句柄未返回任何结果,则search_tweets循环不会继续 - R rtweet: search_tweets loop does not continue if no results returned for a given Twitter handle 使用“rtweet”库的“search_tweets”功能停止下载 - Downloading stops using the “search_tweets”-function of the “rtweet”-library 使用 RTweet 的 search_tweets() 函数在 Twitter 上搜索新推文 - Searching for new tweets on Twitter using RTweet's search_tweets() function 自动将文本插入R中的search_tweets函数 - Inserting text automatically into search_tweets function in r rtweet 搜索查询返回的推文比前几天少得多 - The rtweet search query is returning way less tweets than in previous days rtweet库是否可以从特定位置获取推文? - Does the rtweet library have a way to fetch tweets from a specific location? Windows命令行中带有UTF8查询的search_tweets返回0输出 - search_tweets with UTF8 query in windows command line returns 0 output 如何使用rtweet软件包在过去7天内收集推文? - How can I collect tweets from within the last seven days using rtweet package?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM