From 36c0f2f4d8aef72776a337eef05bec8cd0360e83 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 28 Jun 2012 10:09:28 +0200 Subject: Add scripts to download elberfelder from die-bibel.de That is download is shell scripts using curl, parse books and chapters with sed. Then prepare html with sed to be converted to zefania xml using a xsl stylesheet. --- download-books.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 download-books.sh (limited to 'download-books.sh') 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 -- cgit