Message Boards Message Boards


Downloading all the tweets from an user

Posted 11 months ago
5 Replies
1 Total Likes

Hi there everyone! I am using the Twitter API of Mathematica and I have a problem that I can not solve. I want to download ALL the tweets posted by a user, but, for some reason, my limit download is 5000 tweets. The code that I am using is the following one:


tweets=twitter["TweeList", "Username"->XXYY,"MaxItems"->5000,"Elements"->"FullData"]

If instead of 5000 I write 10000 for example, the following error occur:

ServiceExecute::nval: Invalid value for parameter MaxItems in service Twitter.

Any idea to solve this?

Thank you for your time :)

5 Replies

I think you hit the limit set by twitter API policy.

Is there any way to bypass this restriction?. For instance, If a can download a specific range of tweets, for example from May to March I can avoid this limitation.

Posted 11 months ago

You can use SessionSubmit and ScheduledTask to automate the process of downloading the data in smaller batches with a delay between each batch.

Posted 11 months ago

I've used the date range technique over multiple days before and it worked. Though it has been a while since I've needed to do that.

Can you explain to me how to use it or how it works step by step?

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract