diff --git a/txtDownloader.ipynb b/txtDownloader.ipynb index dae3a5ccd32fe9317d0f3623b77b392903c8ecf3..7039e217b6cc3f6481a4908105dd80f28f2120cb 100644 --- a/txtDownloader.ipynb +++ b/txtDownloader.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 14, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -20,7 +20,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 2, "metadata": {}, "outputs": [ { @@ -37,7 +37,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -46,7 +46,7 @@ "'https://iiif.onb.ac.at/presentation/ABO/+Z196807705/manifest/'" ] }, - "execution_count": 12, + "execution_count": 3, "metadata": {}, "output_type": "execute_result" } @@ -58,7 +58,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 4, "metadata": {}, "outputs": [ { @@ -82,6 +82,19 @@ "downloading https://iiif.onb.ac.at/presentation/ABO/Z196807705/resource/00000015.txt\n", "downloading https://iiif.onb.ac.at/presentation/ABO/Z196807705/resource/00000016.txt\n" ] + }, + { + "data": { + "text/html": [ + "<a href='+Z196807705.zip' target='_blank'>+Z196807705.zip</a><br>" + ], + "text/plain": [ + "/home/georg/Projekte/sacha/sacha-txt-downloader/+Z196807705.zip" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" } ], "source": [ @@ -107,7 +120,8 @@ "zipObj.write(\"all.txt\")\n", "all_txt.close()\n", "os.remove(\"all.txt\")\n", - "zipObj.close()" + "zipObj.close()\n", + "FileLink(barcode + \".zip\")" ] }, { @@ -115,9 +129,7 @@ "execution_count": null, "metadata": {}, "outputs": [], - "source": [ - "FileLink(filename)" - ] + "source": [] } ], "metadata": {