I am using the latest rtweet
package, and I’m getting stuck on the use of the filtered_stream function. I have been able to use other functions in the rtweet
package just fine (search_tweet
, get_timeline
) but I’m missing something with filtered_stream
.
Every time I run the filtered_stream it returns the message:
“No matching tweets with streaming rules were found in the time provided.”
I thought this might mean that there were simply no tweets found, but this error message appears immediately after running the code even if I set the timeout to 120 seconds. Here is my code:
chat_rule <- stream_add_rule(list(value = "#chatgpt", tag = "chatgpt"))
chatgpt_stream <- filtered_stream(timeout = 120, filename = "chatgpt.json", parse = FALSE)