如何从特定位置查找所有用户的推文

How to find tweets of all users from a particular location

我正在尝试在 Twitter 的搜索栏中指定位置。 这是我的查询 lang:en since:2011-05-15 until:2020-01-13 -filter:links -filter:replies 我知道有两个参数,例如 nearwithin 可以根据位置进行搜索。但我不知道如何使用它们。我认为它们已被弃用。但我不确定。

Twitter 的高级搜索 near: 运算符仅适用于城市名称。当城市名称有 2 个或更多单词时使用它有点棘手,当所需城市位于语言(和原始城市名称)为非拉丁语的国家/地区时使用起来更棘手。

将 Twitter 搜索限制在特定位置或地方的更准确的方法是使用带有 latitudelongituderadius(km/mi) 参数的 geocode: 运算符。

例如,您上面的搜索查询 for tweet originating from the city of New York,您可以使用以下内容:

lang:en since:2011-05-15 until:2020-01-13 -filter:links -filter:replies geocode:40.6887908,-73.9273234,30km

获取 latitudelongitude 个地点的最简单方法是用户 Google Maps。只需搜索或查明所需的位置。 latitudelongitude 是浏览器中 URL 行中 @ 符号后的前 2 个参数,以逗号分隔 ,:

https://www.google.com/maps/place/New+York,+NY,+USA/@40.6976637,-74.119764,11z/data=!3m1!4b1!4m5!3m4!1s0x89c24fa5d33f083b:0xc80b8f06e177fe62!8m2!3d40.7127753!4d-74.0059728