Last active
October 8, 2019 21:55
-
-
Save ruebot/90987189f6e225674d57e4b1530758c4 to your computer and use it in GitHub Desktop.
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
import io.archivesunleashed._ | |
import io.archivesunleashed.df._ | |
val images = RecordLoader | |
.loadArchives("/path/to/web/archive/collection", sc) | |
.extractImageDetailsDF(); | |
images.select($"url", $"filename", $"extension", $"mime_type_web_server", | |
$"mime_type_tika", $"width", $"height", $"md5") | |
.orderBy(desc("md5")) | |
.write | |
.csv("/path/to/images/dataframe") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment