Python 如何在twint中获取位置数据

Python 如何在twint中获取位置数据,python,twint,Python,Twint,如何通过继续代码获取位置数据您没有获取位置数据。您可以使用--near(twi.near)设置位置数据。这将为您提供来自某个位置的推文。我不认为你能得到个人推文的位置。 import twint twi = twint.Config() twi.Search = 'political' twi.Custom["tweet"] = ["id", "date", "place", "geo", &qu

如何通过继续代码获取位置数据

您没有获取位置数据。您可以使用
--near(twi.near)
设置位置数据。这将为您提供来自某个位置的推文。我不认为你能得到个人推文的位置。
import twint
twi = twint.Config()
twi.Search = 'political'
twi.Custom["tweet"] = ["id", "date", "place", "geo", "language", "username", "tweet"]
twi.Lang = "in"
twi.Output = "tes.csv"
twi.Store_csv = True
twi.Limit = 20
twint.run.Search(twi)