2020-03-08 19:58:52 +01:00
|
|
|
#!/bin/bash
|
2021-07-29 16:02:20 +02:00
|
|
|
# Extract the icon of a given page using duckduckgo
|
2022-01-25 13:52:59 +01:00
|
|
|
url=$(echo $1 | sed 's|https\?://||' | cut -d '/' -f1)
|
|
|
|
file="/tmp/favicon-$url.ico"
|
|
|
|
wget -nv -O "$file" "https://icons.duckduckgo.com/ip2/$url.ico"
|
|
|
|
echo "$file"
|
|
|
|
timg "$file"
|