5

I'm doing a research project on population dynamics and would love to find a dataset of Foursquare checkins or geotagged tweets within a reasonably large time period (one month or more, ideally not during the winter) in a major city (New York, San Francisco, Boston, etc.). Does anyone know of an open dataset, perhaps originally collected for research purposes, that includes this data?

3

If you are patient enough to run a script for a month, you can get region-specific geo-tagged tweets from the API

https://stream.twitter.com/1.1/statuses/filter.json?locations=5.955870,45.818020,10.492030,47.808380

where the locations parameter is the bounding box of the region you want. You can see an example python code here*.

In terms of sharing twitter data, the TOS allow you to share the tweet id but not the tweet text, because of users' rights to delete their content. For that reason, many twitter datasets only include tweet ids, and any user of that data set must go collect those tweets on their own.

Despite that, there are some available twitter data sets. See here for more details:


*the above code was one part used to make this visualization:

enter image description here

2

foursquare gave a user a dataset a few years ago, who unexplainedly pulled it offline. i used the wayback machine to save it, and host it on GitHub, although to be honest, i've never gone through it so i'm not sure how much data is there, or what data is there. you can sift through it here:
https://github.com/jalbertbowden/foursquare-user-dataset

1

Like philshem said, the streaming API will work for Twitter, but it will return a fairly small subset of the stream...the "garden hose", about 10% of the full stream, and an even smaller subset has geo-enabled tweets, reducing the sample to about 3-5%.

For the full (firehose) stream you need to contact GNIP who is an exclusive provider for Twitter. I collected about 1 month for around $500 for my thesis research - it was pretty awesome.

I used both methods, here is my python/tweepy/mysql script to collect the streaming API: geo-tweepy

1

www.followthehashtag.com has some free datased with twitter geodata, and you can index your own ones

In this url you have some data http://followthehashtag.com/datasets/

enter image description here

enter image description here

Kind regards

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.