📅  最后修改于: 2022-03-11 14:46:06.957000             🧑  作者: Mango
import tweepy
consumer_key= 'your consumer_key'
consumer_secret= 'your consumer_key_secret'
access_token= 'your access_token'
access_token_secret= 'your access_token_secret'
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token,access_token_secret)
api = tweepy.API(auth)
#From here, you can tweet, search tweets, search keywords, etc.