Message Boards Message Boards

1
|
4874 Views
|
5 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Downloading all the tweets from an user

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

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

Posted 4 years 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 BY: Rohit Namjoshi
Posted 4 years 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 BY: Mike Besso

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.

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

POSTED BY: Shenghui Yang
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