Hi, I’m trying to get tweets using ‘get_all_tweets’ in R studio.
At first, it was succesful and the code is like,

plf1 ←
get_all_tweets(
query = “타오르는 여인의 초상”,
start_tweets = “2020-01-01T00:00:00Z”,
end_tweets = “2020-01-31T00:00:00Z”,
file = “타오르는 여인의 초상01”,
is_retweet=FALSE,
bind_tweets=FALSE,
lang = “ko”,
data_path = “data/”,
n = 1000000,
)

and then I tried to collect next months’s tweets with same query, the code is like,

plf2 ←
get_all_tweets(
query = “타오르는 여인의 초상”,
start_tweets = “2020-02-01T00:00:00Z”,
end_tweets = “2020-02-30T00:00:00Z”,
file = “타오르는 여인의 초상02”,
is_retweet=FALSE,
bind_tweets=FALSE,
lang = “ko”,
data_path = “data2/”,
n = 1000000,
)

and then I got the error message like,

Error in make_query(url = endpoint_url, params = params, bearer_token = bearer_token, :
something went wrong. Status code: 400
In addition: Warning message:
Tweets will still be bound in local memory to generate .rds file. Argument (bind_tweets = FALSE) only valid when just a data path has been specified.

I can’t understand what happened because I changed only the date from the same code.
Please tell me the solution…

Thank you!

if this works

but this doesn’t?

Does data2 folder already exist? Maybe that’s it?

I thought that too, so I delete data2 folder but i got the same error message.
I tried with other file name but it didn’t work, too. :cry:

  • I solve the problem! It was the date, there is no 2020-02-30…
    Sorry for such a stupid question :bowing_man:
1 Like