【发布时间】:2023-03-27 16:31:01
【问题描述】:
使用 twitter API 获取推文信息时,返回的 text 或 full_text 字段会在文本末尾附加一个 URL。例如:
"full_text": "Just another Extended Tweet with more than 140 characters, generated as a documentation example, showing that [\"truncated\": true] and the presence of an \"extended_tweet\" object with complete text and \"entities\" #documentation #parsingJSON #GeoTagged https://twitter.com/FloodSocial/status/994633657141813248"
https://twitter.com/FloodSocial/status/994633657141813248 附加在末尾(附加的 url 实际上是一个缩短的 url,但 stackoverflow 不允许在正文中使用缩短的 url,所以我只是用完整的 URL 替换它)。为什么 API 会添加这个,有没有办法在没有添加 URL 的情况下获取文本?
【问题讨论】: