使用Tweepy创建推文触发AttributeError: _make_request问题求助
Problem Description
I'm trying to build a tweet bot with Tweepy but keep getting errors. I'm working with Python 3 and Twitter API v2, and authentication works fine when I run api.verify_credentials on its own.
Update
I've got the following code running successfully:
import tweepy client = tweepy.Client( consumer_key="XXXX", consumer_secret="XXXX", access_token="XXXX", access_token_secret="XXXX" ) filename=open('content.txt.txt') f=filename.readlines() filename.close() for line in f: try: client.create_tweet(text=line) print(line) except tweepy.errors.TweepyException as err: print("err") print("יא גאון מחשבים")
Content sourced from Stack Exchange, asked by Toma Schreibman
相关产品推荐
相关产品推荐

