I'm making a Twitter App in Python using Tweepy. I know how to use tokens but my assignment requires me to make it to allow a user to log in to Twitter using this app.
Is this possible?
Having a user enter their username and password in a Tweepy application used to be possible with Tweepy's BasicAuthHandler
. However, this basic authentication is no longer supported in Twitter's API:
Basic Authentication is deprecated and no longer supported on Twitter.
You can find more info on the deprecation of basic auth in the Twitter API documentation . Twitter now only supports OAuth, so unfortunately Tweepy is unable to serve as an interface for a login page using basic authentication.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.