GetOldTweets3 icon indicating copy to clipboard operation
GetOldTweets3 copied to clipboard

how can i get city name and cordinates of each tweet?

Open Ubaid93 opened this issue 5 years ago • 11 comments

how can i get city name and cordinates of each tweet?

Ubaid93 avatar Nov 29 '19 16:11 Ubaid93

I think we would have to use Twitter API and Tweepy to get that info.

marquisvictor avatar Dec 11 '19 09:12 marquisvictor

But we can't get old tweets using that method. I wish it were possible here

marquisvictor avatar Dec 11 '19 09:12 marquisvictor

Same issue here. The csv has a "geo" column but it is always empty. @Mottl do you know the issue?

parayamelo avatar Jan 08 '20 11:01 parayamelo

It seems like Tweeter is no more sharing a geo location within the <span class="Tweet-geo" ...> tag. There is no such a tag in https://twitter.com/i/search/timeline data which is used for tweets retrieval.

Mottl avatar Jan 08 '20 11:01 Mottl

I see, so the only way would be to pass the near argument to actually get tweets from a particular region/area.

parayamelo avatar Jan 08 '20 12:01 parayamelo

Yes, but what if you want to collect all the tweets on the given subject?..

Mottl avatar Jan 08 '20 12:01 Mottl

Exactly, that is the problem I am facing right now, it is either one or the other, apparently.... What do you recommend?

parayamelo avatar Jan 08 '20 12:01 parayamelo

Use the official Tweeter API which I think has this capability.

Mottl avatar Jan 08 '20 12:01 Mottl

I agree but then we are stuck with the 7 days limit.... Anyway, thanks for the tool! I like how easy it is to use!

parayamelo avatar Jan 08 '20 12:01 parayamelo

Dear Mottl,

I am facing similar issue where the column "geo" is always empty and i saw your response when you said

"It seems like Tweeter is no more sharing a geo location within the <span class="Tweet-geo" ...> tag. There is no such a tag in https://twitter.com/i/search/timeline data which is used for tweets retrieval."

However, does it mean that we can not filter tweets by locations using got.manager.TweetCriteria().setQuerySearch("#BLM").setNear("Minnesota, USA").setWithin("1000km") ?

Are two issues "geocode" tag and "setnear" related to each other?

Thanks very much

badaouisaad avatar Jul 15 '20 11:07 badaouisaad

Any comment on my last comment? Thank you

badaouisaad avatar Jul 29 '20 11:07 badaouisaad