Dear,
I´m working right now for an app in Rstudio in order to analyze some topics for research.

When i tried to get tweets for a different location that “usa” i can no run my code and it keep waiting for a response.
Do i need to do any configuration in order to get tweets around the world?

Regards

I assume it’s calling this right? search_tweets function - RDocumentation

What’s the query that you’re using to get tweets? Are there any errors returned when you cannot run your code? Waiting is normal if you’re running into rate limits, but you should be getting some data in that case. You shouldn’t need to configure anything to change a query to get tweets from different locations.

Dear Igor,

Tjar for your response. That i am triying to do is get tweets form London for example, but, whe i ask for the tweets i got o rows.

When i do that for usa everithing work fine.

Do you know is we need to ask the twitter team to release searchs from different countries?

Regards

my code:

rt ← search_tweets(
“lang:en”, geocode = lookup_coords(“London”), n = 100
)
Result= rows = 0

rt ← search_tweets(
“lang:en”, geocode = lookup_coords(“usa”), n = 100
)
results =everyting ok.

it looks like lookup_coords function - RDocumentation uses google maps api to set geocode parameter - is that definitely working?

Very few tweets have exact geo coordinates, so it might just be that there aren’t any results - but i’d check to see if the generated query is what you’re looking for, there is also a radius for coordinates - i can’t see where it’s set, but maybe increasing that to cover a wider area will return more results?

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.