gpt4 book ai didi

api - 从 Twitter API 请求仅带有地理标记的状态

转载 作者:行者123 更新时间:2023-12-04 20:23:00 28 4
gpt4 key购买 nike

我怎样才能要求 twitter API 给我只是地理标记的状态?我目前正在过滤,但更“友好”会更有意义

最佳答案

似乎您应该可以使用 streaming API and a location filter 来做到这一点。 ,只需将边界框设置为覆盖整个地球:

Just as with the track parameter, queries are subject to Track Limitations, described in Track Limiting and subject to access roles, described in the statuses/filter method. Both the number and size of bounding boxes is limited. Bounding boxes can be up to 360 degrees longitude by 180 degrees latitude, and you may specify up to 25 bounding boxes. A box of 360-degrees by 180-degrees will cover the whole earth. Higher access levels provide additional bounding boxes.



并且因为:

Only tweets that are both created using the Geotagging API and are placed from within a tracked bounding box will be included in the stream – the user’s location field is not used to filter tweets (e.g. if a user has their location set to “San Francisco”, but the tweet was not created using the Geotagging API and has no geo element, it will not be included in the stream).



然后,您应该获得基本上所有的地理标记状态。

关于api - 从 Twitter API 请求仅带有地理标记的状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4244947/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com