Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def __get_government_members(self):
lists = self.__api.lists_all(self.__cfg['twitterListAccount'])
for list in lists:
if list.name == self.__cfg['twitterListName']:
result = []
for item in tweepy.Cursor(self.__api.list_members, list_id=list.id).items():
result.append(item)
return result
return None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment