The Filtering Tweets By Location article shows a method of searching for tweets of a particular topic, and filtering by tweets that show any sign of having come out of a certain geographic region (in this case, Boulder, CO):
#FlagstaffFire (point_radius:[-105.292778 40.019444 25mi] OR place:"Boulder, CO" OR (profile_locality:boulder profile_region:colorado ))
It’s not clear to me how this actually gets formatted into an API call. I would appreciate if someone could show how this would get URL encoded into a valid API call (my attempts thus far have resulted in either authentication errors, or errors simply stating parameters are missing).
That article is for Premium Search queries. You might want to check Standard Search too (limited to last 7 days) Search Tweets introduction | Docs | Twitter Developer Platform there are examples there, but I would not manually encode this into an API call, instead, you can use twurl GitHub - twitter/twurl: OAuth-enabled curl for the Twitter API to test calls.
If it’s Premium Search you want, I would use GitHub - twitterdev/search-tweets-python: Python client for the Twitter 'search Tweets' and 'count Tweets' endpoints (v2/Labs/premium/enterprise). Now supports Twitter API v2 /recent and /all search endpoints. (The only issue may be escaping special characters in your shell / command prompt)
system
Closed
#3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.