I am wondering of how can i get all a historical of tweetes and likes gathered in one CSV file,
I was looking at some GitHub codes, and i did not get all tweetes, i get only approximately 3000 tweets only, as well as the (official twitter archive) did not support the likes section.
Also if there is a some codes i can specify specific dates to get tweetes between them.

Than you

Hi @Arwa - what API/endpoint are you using? I suggest you use the Search API which offers different levels of access, depending on your needs. Note that the standard version of the API only returns Tweets from the past 7 days. The premium version of the API lets you collect Tweets from as early as 2006.

You can use the fromDate: and toDate: parameters to get Tweets within a specified time range (premium version).

All calls to the Search API return data encoded using JavaScript Object Notation (JSON). You can read more about this in our documentation here. You can find the number of likes for each Tweet by looking at the favorite_count field returned by the JSON response payload. You can find out more about the information returned in the response payload in our documentation here.

In terms of how many Tweets you can collect, it depends on the package that you decide to use. You can see the different options in our documentation here.

Let me know if you have any more questions.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.