2018-01-20 21:55:26 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
while IFS='$\n' read -r url; do
|
2018-04-15 12:17:35 +02:00
|
|
|
filename="`echo "$url" | sed -Ee 's@/|:|\?|\!|\*|\(|\)|=|'"'"'|\+|;|,|\@|#|\[|\]|\$|&@@g' | sed 's/^http//g' | sed 's/^www\.//g'`"
|
|
|
|
echo "scrapy crawl parishes -a url=\"$url\" -a filename=\"$filename\" -t jsonlines -o \"data/$filename\" 2> \"logs/$filename\" "
|
2018-01-20 21:55:26 +01:00
|
|
|
done
|