vladkens / twscrape

2024! X / Twitter API scrapper with authorization support. Allows you to scrape search results, User's profiles (followers/following), Tweets (favoriters/retweeters) and more.
https://pypi.org/project/twscrape/
MIT License
1.12k stars 133 forks source link

How to get UserID from Username #139

Closed BrokedTV closed 8 months ago

BrokedTV commented 8 months ago

Most actions require the userID, how do i obtain it from a given username?

BrokedTV commented 8 months ago

I realized it's

api.user_by_login(user_login)

I would suggest renaming it to api.user_by_username()

which is more intiutive