How to get tweets of a particular hashtag in a location in a tweepy?

随声附和 提交于 2019-12-04 02:45:19

You need to use the geocode parameter in Tweepy. Using the lat/long/radius from your search URL, your cursor should be defined like so:

tweepy.Cursor(api.search, q='cricket', geocode="-22.9122,-43.2302,1km").items(10)

See the Tweepy API.search documentation for more information on the parameters you can include in your search.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!