Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

resurrect build_user_query or permit user query building in build_query #110

Closed
cjbarrie opened this issue Jun 9, 2021 · 0 comments
Closed
Labels
enhancement New feature or request
Projects

Comments

@cjbarrie
Copy link
Owner

cjbarrie commented Jun 9, 2021

The function build_user_query() in v0.1.0 allowed users to build user queries, taking a vector of usernames, and searching their tweets while e.g. removing RTs or specifying other parameters. This was deprecated in recent PR.

For consistency, we need to resurrect build_user_query() or make it possible to take a vector of usernames with the build_query() function and append the additional tweet parameters to each username.

The expected behaviour (as it behaves in the current CRAN release) is as follows:

require(academictwitteR)
#> Loading required package: academictwitteR

bt <- "AAAAAAAAAYOURBEARERTOKENHERE"

users <- c("cbarrie", "justin_ct_ho")

users_params <-
  build_user_query(users,
                   is_retweet = F,
                   has_media = T,
                   lang = "en")

users_params
#> [1] "cbarrie -is:retweet has:media lang:en"     
#> [2] "justin_ct_ho -is:retweet has:media lang:en"
@cjbarrie cjbarrie added this to TODO in 0.2 Jun 9, 2021
@cjbarrie cjbarrie added the enhancement New feature or request label Jun 9, 2021
@justinchuntingho justinchuntingho moved this from TODO to Done in 0.2 Jun 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
No open projects
0.2
Done
Development

No branches or pull requests

2 participants