blob: c758f58a812086da283672dcea1a6c8c7ac1871b (
plain) (
tree)
|
|
#!/bin/sh
base_url=https://basic.photofunia.com
tmpfile=$(mktemp /tmp/funia.XXXXXX)
category=$(
curl -s "$base_url/categories" \
| sed -n -e 's/[[:blank:]]//g' -e '/all_effects/d' -e 's|^.*href="/categories/\(.*\)".*$|\1|p' \
| sort \
| dmenu
)
page=1
while curl -so "$tmpfile" "$base_url/categories/$category?page=$page"
do
echo ----- $page -----
page="$(($page + 1))"
done
cat "$tmpfile"
|