Hello. I’m trying to pull tweets from the state of Colorado in the US. I have successfully used the place code place:e21c8e4914eef2b3 , but this only gives me tweets assigned to “Colorado, USA”. I am missing tweets from geographic locations that contain “, CO” or have latitude/longitude coordinates within CO. The weird thing is, I was able to use that place code within the standard search and retrieve all locations within CO. Yet the premium search is limiting my results to only “Colorado, USA” or “Denver, Colorado”. “Denver, CO” would be missed. I tried place_contains ', CO' as suggested on this website, but got a 422 error. So possibly my query was not formatted correctly.
How would I go about pulling ALL tweets from Colorado in the premium search, including any locations ending in , CO and any lat/long coordinates within CO? I am using the TwitterAPI python module, if that’s relevant. Thanks so much!
yeah, place_contains looks like it’s powertrack only?
The geo search on web is totally different to Premium, it’s unfortunate that they don’t behave the same.
You might have to make a query with OR for a bunch of place IDs in that case, eg:
bears (place:e21c8e4914eef2b3 OR place:fd70c22040963ac7 OR place:b49b3053b5c25bf5)
but i’m not sure how viable that solution is.
I don’t think that solution will work, because I’d have to list every possible location in CO, and create bounding boxes for the entire state (which would be more feasible than listing every possible location). Is there another solution I could try? It seems like this would be a pretty basic search filter, especially considering it works for standard searches. Jumping up to the Powertrack is not financially feasible, unless there is a new program with steep discounts for academic research.
Got it. This works: (place: e21c8e4914eef2b3 OR place: CO)
The lack of consistency across the endpoints - despite similar functionality - is a bit cumbersome for users.
1 Like
system
Closed
#6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.