Improve this answer. Julien Ehrhart Julien Ehrhart 71 4 4 bronze badges. The Overflow Blog. Introducing Content Health, a new way to keep the knowledge base up-to-date. Podcast what if you could invest in your favorite developer? Featured on Meta. Now live: A fully responsive profile. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Learn more. Asked 10 years, 6 months ago. Active 4 years, 3 months ago. Viewed k times. Acording to Twitter they don't delete old messages, they simply archive them in their database. Improve this question. Add a comment. Active Oldest Votes. Is there any way to download the own direct messages to archive them?
Add a comment. Active Oldest Votes. Julien Ehrhart Julien Ehrhart 1 1 silver badge 6 6 bronze badges. While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. Post updated with the algorithm and headers requirements. I did the same. I guess you could observe the url generation the ids seem to be included in the html , export the cookies and then download the messages in chunks by parsing the html, extracting the oldest id and generating a url downloading messages with lower id.
If you want to experiment, firefox developer tools have an option "copy curl commandline", which adds useragent, cookies, referer, post-data, etc to the command line to reproduce the request. Sign up or log in Sign up using Google. Sign up using Facebook. Unzip the archive in a temporary folder and double-click the executable or run it in a Command Prompt mandatory if you want to use parameters to download images and videos :.
Note: If you run the tool directly from the zip archive window, it may fail when writing the log file. Instead, copy DMArchiver. Download a macOS build from the project releases. Then click on the executable, or run Terminal and execute the following commands mandatory if you want to use parameters to download images and videos :.
The script output will be the You can also specify the username and the password in the options. Because DMArchiver is able to perform incremental updates, you can schedule a task or create a shortcut with the following arguments:. Note the usage of the -s flag to use an existing session, instead of creating a new one. The Python 3. It will allow the best compatibility with all the platforms.
Sometimes, generally due to a connection error, the script will write the messages of the conversations before retrieving all the messages. In this case, you should try to run the script again. Twitter may introduce new features or change the HTML output at any time.
When it happens, DMArchiver may generate empty, broken logs or even crash. This kind of error message means the tool must be updated to handle the new output. Feel free to create a new issue when you encounter one of these messages. You may encounter building issues with the lxml library on Windows error: Unable to find vcvarsall.
The most simple and straightforward fix is to download and install a precompiled binary from this site and install the package locally:.
0コメント