简体   繁体   中英

Tweepy - How to get only tweets with coordinates?

I have a large database of tweet ids (a few million ids) and I need to get those that have location coordinates. I'm searching one by one, with the tweepy lookup_statuses() method, but it's a very slow process.

Is there a way to get just the ones with coordinates (property "place" or "coordinates")?

The lookup_statuses method accepts lists of 100 ids as argument (see the documentation here ), so you can do faster than getting them one by one.

But unfortunately, there is no other way to speed up your process.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM