0

I have two question about academictwitteR package:

NO.1 I wan to get tweets contains:

((word1 OR word2)AND(wordA OR wordB))OR word*

I get what I want with below code:

  get_all_tweets(
    query = c("word1 wordA","word1 wordB","word2 wordA","word2 wordB","word*"
             ),
    lang="en",
    start_tweets = "2022-01-01T10:00:00Z",
    end_tweets = "2022-12-31T10:00:00Z",
    data_path="data/GMOtest",
    bind_tweets=FALSE,
  )

But why I get less tweets with below code? I need to group key words to save space of my query.

  get_all_tweets(
    query = c("(word1,word2) (wordA,wordB)","word*)
             ),
    lang="en",
    start_tweets = "2022-01-01T10:00:00Z",
    end_tweets = "2022-12-31T10:00:00Z",
    data_path="data/GMOtest",
    bind_tweets=FALSE,
  )

No.2 How can I get tweets contains (not logic):

((word1 OR word2)AND(wordA OR wordB))OR word* AND -(wordX OR wordZ)

Foulball
  • 61
  • 8

0 Answers0