Twitter API的statuses/user_timeline
部分將地理位置數據與每個推文一起作爲「地點」返回。另一方面,搜索API不返回這個位置數據(據我所知)。有沒有辦法通過搜索API獲取位置數據?如何使用Twitter搜索API獲取推文位置
7
A
回答
2
有一個在search
資源的每個結果的geo
字段(參見documentation的例子中),這是地理位置的一種形式,但不是完全相同的事情作爲statuses/user_timeline
的place
字段。
或者,您也可以通過statuses/show/:id
資源使用結果的id
另一個請求(參見documentation),它返回兩個geo
和place
領域,但是這意味着每製作一個結果多個請求。
1
Matt asked this question directly to Twitter and got a response,並且回答的開發者指出JSON格式確實包含'geo'屬性。
相關問題
- 1. 使用Twitter搜索API獲取推文的位置
- 2. 使用Twitter API api v1.1搜索/推文
- 3. 使用Twitter搜索API 1.1獲取C#中的實時推文
- 4. 使用twitter搜索api獲取推文圖片
- 5. 使用Twitter API確定推文位置
- 6. 推文的Twitter API位置
- 7. Twitter搜索API用於過濾推文
- 8. 在Twitter上查找使用Twitter搜索API V1.1推文
- 9. 如何使用python-twitter搜索API獲取最新的推特ID
- 10. Twitter API:搜索關注者推文
- 11. 只獲取包含圖像的推文(使用Python的Twitter搜索API)
- 12. 如何使用新的Twitter搜索API獲取份額?
- 13. 如何使用Twitter搜索API獲取超過20個結果
- 14. 如何從用戶使用twitter API獲取Tweet推文Tweet
- 15. 如何在clojure中使用twitter-api獲取流媒體推文?
- 16. 如何獲取鏈接使用Twitter API的推文數量?
- 17. 如何在python中使用twitter API獲取推文?
- 18. Twitter搜索API,獲取搜索字符串的配置文件url
- 19. Twitter API 1.1搜索/推文 - 按日期搜索
- 20. 使用twitter api搜索推文的奇怪問題
- 21. twitter api獲取推文(文章)
- 22. 使用「響應」從搜索API獲取推文
- 23. Twitter API搜索 - 如何排除某些推文?
- 24. PHP:Twitter搜索API - 如何從JSON數據獲取推文
- 25. 使用Twitter搜索API的位置和OAuth問題
- 26. Twitter地理位置/搜索
- 27. Twitter:如何使用twitter api獲取json格式的所有推文
- 28. Twitter api在Twitter上搜索推文標籤
- 29. 如何根據位置獲取推文?
- 30. 排除推特在Twitter搜索API 1.1
它在'geo'字段中返回,請參閱此處:https://dev.twitter.com/docs/api/1/get/statuses/user_timeline – Nasreddine
是的,但我需要它在Search API結果中。 。不是user_timeline的結果。雖然謝謝:) –