Skip to content

Conversation

cadenshokat
Copy link

@cadenshokat cadenshokat commented May 13, 2025

2 new functions api.list_members_raw and api.list_members let users retrieve all members of a public Twitter List via the GraphQL API.

"Lists" are curated groups of subject matter "experts".

  • Ex lists: “Data Scientists,” “Tech Journalists,” “Solana Devs”
  • Use Cases: Direct access to curated groups without scraping followers/following feeds.

Additions

OP_ListMembers = "CDYIXKGINDLWntNdeXVUgQ"

Raw Function
async def list_members_raw(self, list_id: int, limit: int = -1, kv: KV = None):

Parsed
async def list_members(self, list_id: int, limit: int = -1, kv: KV = None):

Also changes to cli.py and test_api.py for consistency.

Changes to:
api.py
cli.py
test_api.py
@cadenshokat cadenshokat requested a review from vladkens as a code owner May 13, 2025 04:19
@cadenshokat cadenshokat changed the title Functionality to get members from a "List". Add api to get members from List May 13, 2025
@cadenshokat cadenshokat changed the title Add api to get members from List API to get members from List May 13, 2025
Copy link
Author

@cadenshokat cadenshokat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes:

  • Additions: 20
  • Deletions: 0


# list members of a List

async def list_members_raw(self, list_id: int, limit: int = -1, kv: KV = None):
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

func to get members from list

async for page in gen:
yield page

async def list_members(self, list_id: int, limit: int = -1, kv: KV = None):
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant