【发布时间】:2019-12-26 21:18:33
【问题描述】:
我对 Twitter 流式处理 API 的行为完全感到困惑。我为“ESPN:
创建了一个带有 1 个关注的简单流并获得这条推文(见附件)。这是转推,但原文是 "ESPN FC" ,而不是 "ESPN"
这到底是怎么回事?为什么 twitter 流 API 返回此状态?
{ "extended_entities": { "media": [ { "display_url": "pic.twitter.com/y2E7ktezgd", "source_user_id": 18091004, "type": "photo", "media_url": "http://pbs.twimg.com/media/ECfRaipX4AA-_-S.jpg", "source_status_id": 1164129284480483329, "url": "<placeholder_url>",
"indices": [ 44, 67 ], "sizes": { "small": { "w": 544, "h": 680, "resize": "fit" }, "large": { "w": 1080, "h": 1350, "resize": "fit" }, "thumb": { "w": 150, "h": 150, "resize": "crop" }, "medium": { "w": 960, "h": 1200, "resize": "fit" } }, "id_str":
"1164129282605703168", "expanded_url": "https://twitter.com/ESPNFC/status/1164129284480483329/photo/1", "source_status_id_str": "1164129284480483329", "media_url_https": "https://pbs.twimg.com/media/ECfRaipX4AA-_-S.jpg", "id": 1164129282605703168, "source_user_id_str":
"18091004" } ] }, "in_reply_to_status_id_str": null, "in_reply_to_status_id": null, "created_at": "Wed Aug 21 14:19:49 +0000 2019", "in_reply_to_user_id_str": null, "source": "<a href=\ "http://twitter.com/download/iphone\" rel=\ "nofollow\">Twitter for iPhone<\/a>",
"retweeted_status": {
"extended_entities": {
"media": [
{
"display_url": "pic.twitter.com/y2E7ktezgd",
"indices": [
32,
55
],
"sizes": {
"small": {
"w": 544,
"h": 680,
"resize": "fit"
},
"large": {
"w": 1080,
"h": 1350,
"resize": "fit"
},
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"medium": {
"w": 960,
"h": 1200,
"resize": "fit"
}
},
"id_str": "1164129282605703168",
"expanded_url": "https://twitter.com/ESPNFC/status/1164129284480483329/photo/1",
"media_url_https": "https://pbs.twimg.com/media/ECfRaipX4AA-_-S.jpg",
"id": 1164129282605703168,
"type": "photo",
"media_url": "http://pbs.twimg.com/media/ECfRaipX4AA-_-S.jpg",
"url": "<url>"
}
]
},
"in_reply_to_status_id_str": null,
"in_reply_to_status_id": null,
"created_at": "Wed Aug 21 10:57:04 +0000 2019",
"in_reply_to_user_id_str": null,
"source": "<a href=\"https://www.spredfast.com/\" rel=\"nofollow\">Spredfast app<\/a>",
"retweet_count": 2773,
"retweeted": false,
"geo": null,
"filter_level": "low",
"in_reply_to_screen_name": null,
"is_quote_status": false,
"id_str": "1164129284480483329",
.....
}
}
【问题讨论】:
-
我在这里没有看到任何附件。你在 Twitter 开发者论坛上问过吗? twittercommunity.com - 另外,你能分享一个代码示例吗?您是关注 ESPN 帐户,还是跟踪该术语?
-
Stackoverflow 不允许我附加 json .. 仍在努力解决它
标签: twitter twitter4j twitter-streaming-api