Skip to content
Prev 361379 / 398506 Next

TwitteR - Number of tweets from multiple locations

Hi Juho!
01.06.2016, 14:40, Juho Kiuru wrote:
Have your read the documentation ('?searchTwitter'). The argument 
'geocode' cannot be a list, only a single value.

A possible workaround could be to filter tweets based on geocode after 
you have received these. However, since your search pharse is rather ge 
general, you would receive a lot of "noise" as well.

One possibility would be to write a loop with three 'searchTwitter' 
calls with different geocodes. Here you could speed up the data 
collection by setting 'n' to e.g. 100 or 500.

You should, however, consider the fact that geocodes are often supressed 
by the user, so that you would most certainly get only a limited amount 
of tweets.
If I remember correctly this is not related to twitteR, but to the 
Twitter API itself. The API limits your search results to contain tweets 
from the last 7 days only.

HTH,
Kimmo

--
Kimmo Elo
?bo Akademi University, Finland / German studies
University of Turku, Finland / DIGIN - Digital Humanities Network