Created
March 10, 2022 17:41
-
-
Save CurtisVonRubenhoff/145a99f65fdd66b10cc879833d7d08a9 to your computer and use it in GitHub Desktop.
Get list of links from archive.org indexes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Run this in javascript console while looking at list of files on archive.org | |
// to produce list of all file download links | |
function checkForLinks() { | |
var tableThing = document.querySelector(".directory-listing-table tbody") | |
var links = [] | |
for (var i = 0; i< tableThing.children.length; i++) { | |
var row = tableThing.children[i]; | |
links.push(`${window.location.href}/${row.children[0].children[0].getAttribute("href")}`) | |
} | |
return links | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment