#!/bin/bash
file="links"
curl -sL --request "GET" "https://zunzicomic.wordpress.com/category/明報/尊子漫畫/" | grep 'src="[^"]\+" alt=""' | sed -r 's/.+src="([^"]+)".+/\1/g' >"${file}"
i="1"
while [ "${i}" -lt "484" ]; do
i=$(($i+1))
echo "${i}"
curl -sL --request "GET" "https://zunzicomic.wordpress.com/category/明報/尊子漫畫/page/${i}/" | grep 'src="[^"]\+" alt=""' | sed -r 's/.+src="([^"]+)".+/\1/g' >>"${file}"
done
wget -i "${file}"