Skip to content

Timelines and mentions should only take user IDs, not usernames #587

Open

Description

@SamHames

I think these two endpoints should only take user IDs, and not implicitly perform the lookup if a username is passed.

This would let us:

  • avoid the complexity of dealing with usernames that might also user ids (I think the current implementation has some weird edge cases - a username that doesn't exist will raise an error, but a user id that doesn't exist won't)
  • align the functionality with the Twitter API at the client, rather than doing an unexpected username -> user_id lookup

We'd probably need some supporting documentation to show how to convert usernames into user ids too?

Activity

  1. igorbrigadir commented on Jan 10, 2022

    @igorbrigadir
    Contributor

    How about a twarc2 usernames input.txt output.txt command? Something like that?

    It's convenient to use usernames - maybe we can still do this but only if explicitly set, to avoid checking?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions