2020-03-08 18:58:52 +00:00
|
|
|
#!/bin/bash
|
2021-07-29 14:02:20 +00:00
|
|
|
# Extract the icon of a given page using duckduckgo
|
2022-01-25 12:52:59 +00: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"
|