برنامه نویسی
داده های توییتر با استفاده از Tweepy در سال 2025

توجه داشته باشید که برای انتخاب بخوانید و بنویسید در مجوزهای برنامه زیر تنظیمات احراز هویت کاربربشر
client = tweepy.Client(
bearer_token=BREARER,
consumer_key=API_KEY,
consumer_secret=API_KEY_SECRET,
access_token=ACCESS_TOKEN,
access_token_secret=ACCESS_TOKEN_SECRET,
return_type = dict,
wait_on_rate_limit = True
)
response = client.search_recent_tweets(
"artifical intelligence OR machine learning lang:en",
max_results = 10,
tweet_fields = ['author_id','created_at','text']
)