Skip to content

Instantly share code, notes, and snippets.

var urls = {};
// Use browser debug tools to determine the column ID of the column which contains the tweets you want to archive
var columnID = 'e.g. c1668738656730s59';
var col = document.querySelector('.chirp-container[data-column=' + columnID + ']')
// Each time you run this line, new content will be loaded into the column by scrolling, and the new tweet information added
// to urls. Repeat the “up, enter, wait for new content” cycle until either you are satisfied or tweetdeck refuses to load
// more content. If you get HTTP 429 errors, wait a little and continue! Only once you get a 410 or just nothing at all when
// running the line have you reached the end.
col.parentElement.scrollBy(0, col.scrollHeight); document.querySelectorAll('[data-column=' + columnID + '] .tweet-timestamp a').forEach(function (el) {urls[el.href] = true;})