d60 / twikit

Twitter API Scraper | Without an API key | Twitter Internal API | Free | Twitter scraper | Twitter Bot
https://twikit.readthedocs.io/en/latest/twikit.html
MIT License
1.31k stars 156 forks source link

Change input() calls to async input for compatibility in asynchronous workflows #220

Open kevinkaburu opened 3 weeks ago

kevinkaburu commented 3 weeks ago

There are two instances where input() is used for user interaction (specifically in the LoginTwoFactorAuthChallenge and LoginAcid subtasks). These calls are synchronous, which causes issues when trying to use the library in an asynchronous environment.

Since the library is largely asynchronous, blocking input operations (like input()) break the flow when using it in modern async workflows. It would be beneficial to update these input() calls to non-blocking async input() calls or use another async-friendly input handling mechanism.

Affected Areas:

Suggested Solution:

ugsystem commented 2 days ago

pls fix this