This repository has been archived by the owner on Jun 30, 2023. It is now read-only.
Help: Boolean search tips in build_query #368
cssetupman
started this conversation in
General
Replies: 1 comment
-
This is not a feature request so has been converted to a Discussion. Please read the documents on what your status codes mean. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the solution you'd like
I want to count # of tweets that include ("artificial intelligence" or "algorithm*") AND ("disappointing").
I added the asterisk after algorithm to collect any tweets that include algorithm such as algorithmic.
aiconv <- build_query(
query = c("artificial intelligence","algorithm*","disappointing"),
is_retweet = FALSE,
lang = "en")
aiconv
AIcount<-count_all_tweets(query = aiconv,
start_tweets = "2022-11-29T00:00:00Z",
end_tweets = "2022-12-01T00:00:00Z",
is_retweet = FALSE,
lang = "en")
Then, I got the error code 400 as below.
Error in make_query(url = endpoint_url, params = params, bearer_token = bearer_token, :
something went wrong. Status code: 400
Can anyone instruct me how to use this boolean search rule in build_query command.
I can only find single search term examples here: https://github.com/cjbarrie/academictwitteR/blob/master/vignettes/academictwitteR-build.Rmd
Thank you so much for your help.
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions