Skip to content

Feature Request: Twitter likes list command #287

@poer2023

Description

@poer2023

Feature Description

Currently, opencli has a twitter like command to like a specific tweet, but there's no command to fetch a user's liked tweets list (similar to bookmarks, timeline, followers, etc.).

Use Case

As a user, I want to retrieve the list of tweets that a specific Twitter user has liked, which is useful for:

  • Analyzing user interests and preferences
  • Backing up liked content
  • Content curation and research

Expected Behavior

opencli twitter likes <username> --limit 20

Should return a list of tweets that the specified user has liked, similar to how bookmarks and timeline work.

Technical Details

I've found that Twitter's GraphQL API has a Likes endpoint:

  • Query ID: RozQdCp4CilQzrcuU0NY5w
  • Endpoint: /i/api/graphql/{queryId}/Likes
  • Parameters: userId, count, cursor (for pagination)

The API structure is similar to the existing bookmarks and timeline commands.

Question

Is there a specific reason why this feature hasn't been implemented yet? Are there any technical limitations or API restrictions I should be aware of?

I'm happy to contribute a PR if this feature would be welcomed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions