Skip to content

Instantly share code, notes, and snippets.

@geotheory
Created October 26, 2020 18:10
Show Gist options
  • Save geotheory/caa0157984a9cf1fc692f691dec0807f to your computer and use it in GitHub Desktop.
Save geotheory/caa0157984a9cf1fc692f691dec0807f to your computer and use it in GitHub Desktop.
require(rtweet)
twitter_list_id_to_name = function(listid){
lm = lists_members(listid)
listed_by = lists_memberships(lm$screen_name[1], n = 1000)
gsub('@', '', filter(listed_by, list_id == listid)$full_name)
}
twitter_list_id_to_name('992463105195114496')
@geotheory
Copy link
Author

Method to reverse-check a list's name if guess fails - e.g. list https://twitter.com/i/lists/6143710 is "Astronauts in Space Now" is actually NASA/astronauts-in-space-now1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment