Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Missing the following variables: user_id, screen_name, account_created_at, profile_background_url, profile_banner_url, profile_expanded_url, place_full_name, reply_to_status_id, media_type, hashtags, urls_expanded_url, media_expanded_url, ext_media_expanded_url, mentions_user_id, profile_image_url, account_created_at, is_retweet, is_quote, statuses_count, followers_count, friends_count, favourites_count, verified #15

Open
weiaiwayne opened this issue Aug 19, 2022 · 7 comments

Comments

@weiaiwayne
Copy link

Trying to use predict_bot() but got the following error:

Error: Missing the following variables: user_id, screen_name, account_created_at, profile_background_url, profile_banner_url, profile_expanded_url, place_full_name, reply_to_status_id, media_type, hashtags, urls_expanded_url, media_expanded_url, ext_media_expanded_url, mentions_user_id, profile_image_url, account_created_at, is_retweet, is_quote, statuses_count, followers_count, friends_count, favourites_count, verified

The data frame returned from the latest version of rtweet seems different from the output from the older version (some columns are nested). Does it have anything to do with the error?

@github-actions
Copy link

Thank you for creating an issue on {tweetbotornot}! I appreciate the feedback!

@simonlindgren
Copy link

I am getting this same error about missing variables. Is there any solution? Thanks.

@vinciuna
Copy link

vinciuna commented Oct 3, 2022

issue is with model tweetbotornot_xgb_model call:

twtdat <- rtweet::get_timelines("kearneymw", n = 100, check = FALSE)
"user_id, screen_name, account_created_at, profile_background_url, profile_banner_url, profile_expanded_url, place_full_name, reply_to_status_id, media_type, hashtags, urls_expanded_url, media_expanded_url, ext_media_expanded_url, mentions_user_id, profile_image_url, account_created_at, is_retweet, is_quote, statuses_count, followers_count, friends_count, favourites_count, verified" |> 
stringr::str_split(pattern = ", ")  |> unlist() -> bot_nms
bot_nms[!bot_nms %in% names(twtdat) ]

"user_id" "screen_name" "account_created_at" "profile_background_url" "profile_banner_url" "profile_expanded_url" "place_full_name" "reply_to_status_id" "media_type" "hashtags" "urls_expanded_url" "media_expanded_url" "ext_media_expanded_url" "mentions_user_id" "profile_image_url" "account_created_at" "is_retweet" "is_quote" "statuses_count" "followers_count" "friends_count" "favourites_count" "verified"

@dc1023
Copy link

dc1023 commented Oct 26, 2022

Hello, I am getting the same issue. Does anybody have a solution for this?

@simonlindgren
Copy link

I got this error when running tweetbotornot2 on a server or within a docker image. I believe the error has to do with the script not being able to retrieve twitter data. It works for me if I run it on a local machine, rather than on server/docker.

@dc1023
Copy link

dc1023 commented Oct 27, 2022

I got this error when running tweetbotornot2 on a server or within a docker image. I believe the error has to do with the script not being able to retrieve twitter data. It works for me if I run it on a local machine, rather than on server/docker.

Thank you for replying!!! Do you mind explaining more about how you run this on a local machine? Do you just collect all the data and store it locally?

@simonlindgren
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants