summaryrefslogtreecommitdiff
path: root/download-books.sh
diff options
context:
space:
mode:
Diffstat (limited to 'download-books.sh')
-rwxr-xr-xdownload-books.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/download-books.sh b/download-books.sh
new file mode 100755
index 0000000..125c29c
--- /dev/null
+++ b/download-books.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+rm -rf books/
+mkdir books
+echo -n > book-list
+
+curl -s http://www.die-bibel.de/online-bibeln/elberfelder-bibel/bibeltext/ | \
+ ./parse-book.sed | \
+ while read url
+ do
+ read book
+ book=$(echo $book | sed s:/.*$:: )
+ echo $book
+ echo $book >> book-list
+ curl $url > "books/$book"
+
+ done