我使用Tweepy和Python访问Twitter API。在
我想知道下面的问题是常见的还是只发生在我身上。在
我正在存储一些tweet。 转发的内容存储在这个fortmat中:
RT @User [text of the tweet]
我在这里注意到,即使用户使用“Retweet”按钮转发文本,文本总是以相同的格式存储(RT @User [text of the tweet]
),当然,当Twitter API添加“RT @user
”时,整个文本可以超过140个字符,因此它被存储,但不是完整的长度。在
如果问题不是一个常见的bug,那么对于那些使用Tweepy的用户来说,这个bug是来自它还是来自Twitter API?在
这不是一个错误,而是一个正常的行为。要为截断字段引用the tweeter documentation,请执行以下操作:
转发是一种特殊类型的tweet,它有一个称为“
retweeted_status
”的额外节点。 原始tweet的原始、未更改的tweet文本处于retweated_状态的文本字段中,而不像传统tweets那样位于最顶端的文本字段。在试着跟着
它将打印完整的转发推文。在
相关问题 更多 >
编程相关推荐