Created
October 26, 2020 18:10
-
-
Save geotheory/caa0157984a9cf1fc692f691dec0807f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
.