summaryrefslogtreecommitdiff
path: root/download-books.sh
blob: 125c29c1bc7984a20b0a90287d1f1836d69740cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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