blob: c758f58a812086da283672dcea1a6c8c7ac1871b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/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"
|