相关疑难解决方法(0)

用Tweepy回复Tweet - Python

回复一个特定的推文时,我似乎无法解决这个问题:

auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)

api = tweepy.API(auth)

### at this point I've grabbed the tweet and loaded it to JSON...

tweetId = tweet['results'][0]['id']

api.update_status('My status update',tweetId)
Run Code Online (Sandbox Code Playgroud)

api说它需要可选参数而in_reply_to_status_id是第一个,但它似乎完全忽略了它.此脚本将发布更新状态,但它不会将其链接为对我传递的tweetId的回复.

API供参考:http://code.google.com/p/tweepy/wiki/APIReference#update_status

有人有主意吗?我觉得我在这里错过了一些简单的东西......

提前致谢.

python twitter tweepy

18
推荐指数
4
解决办法
1万
查看次数

标签 统计

python ×1

tweepy ×1

twitter ×1