小编Jos*_*nan的帖子

来自提及的Tweepy用户ID

我正在使用tweepy设置脚本来查找最新提到的用户名.从这里,我想检索推文的文本,以及他们的推特用户名.但是,我似乎无法检索实际的@用户名,只能检索他们的ID号.有什么建议?

以下是我的代码.问号是我需要正确语法的地方:

myMentions = tweepy.Cursor (api.mentions).items(1)

for mention in myMentions:
    statusText = mention.text
    statusUser = mention.????
Run Code Online (Sandbox Code Playgroud)

非常感谢!

python twitter tweepy

6
推荐指数
1
解决办法
3789
查看次数

标签 统计

python ×1

tweepy ×1

twitter ×1