Skip to content

How to collect random sample of tweets for a given location and time? #655

Answered by SamHames
vijetadeshpande asked this question in Q&A
Discussion options

You must be logged in to vote

To answer your questions:

  1. The tweets will be reverse chronological, with a limit of 1000 you'll get at least 1000 tweets, starting with the newest first.
  2. No, this would not be the same as uniform sampling.
  3. There's no support in the API for any kind of sampling: you could only get close to a true random sample by collecting everything and then sampling as a post-processing step. There might be ways to take samples at random times throughout that window, but they probably wouldn't meet the requirements for a random sample.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vijetadeshpande
Comment options

Answer selected by igorbrigadir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants