Message Boards Message Boards

GROUPS:

Downloading all the tweets from an user

Posted 3 months ago
569 Views
|
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:

twitter=ServiceConnect["Twitter",SaveConnection->True]

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 3 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.

Posted 3 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.

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
Attachments
Remove
or Discard

Group Abstract Group Abstract