Skip to content

Instantly share code, notes, and snippets.

@mribeirodantas
Last active September 13, 2020 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mribeirodantas/ec0749ff3ea94b91d690a9a8c3977270 to your computer and use it in GitHub Desktop.
Save mribeirodantas/ec0749ff3ea94b91d690a9a8c3977270 to your computer and use it in GitHub Desktop.
Get a vector of handle names of people you follow and have not tweeted in the past 90 days.
# install.packages("rtweet")
library(rtweet)
library(dplyr)
library(lubridate)
# Set to your username below
username = 'mribeirodantas'
following = get_friends(user = username)$user_id
get_timeline(user = following, n = 1, check=FALSE) %>%
filter(created_at < (today() - 90)) %>%
select(screen_name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment