Sorry to bring this thread back to life, but I've been having a look at this too. 'Accept': 'application/json, text/javascript, */* q=0.01'Ĭurrently, the output of the tool is only available as an IRC-like conversation but I may add other output styles in the future (HTML, JSON, XML.). Some headers are also required to get a proper response from Twitter: 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0 WOW64 rv:47.0) Gecko/20100101 Firefox/47.0' When max_entry_id is not in the json response, you are at the begin of the thread. You need to use the value of the min_entry_id variable in the response as the new max_entry_id in each subsequent iteration to get the next 20 older tweets. The max_entry_id value is not required for the first request. The main idea is to make requests in loop by calling the following URL with a valid auth_token cookie value for the authentication and parse the json response: The script just simulate the "scrolling method" described by dimethylarginine and parse the result. I have created a tool ( ) to download my direct messages, with the ability to also download the uploaded images, videos and GIFs (as MP4).īecause it does not rely on the API, it is possible to download more than 200 messages.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |