Created
March 24, 2023 15:00
-
-
Save alhirzel/ec5172676415591f6071e49cf6521488 to your computer and use it in GitHub Desktop.
Downloader for SmartCreative wallpapers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URL=https://www.workwithsmart.com/keweenaw-wallpapers/ | |
default: .page_cache.html | |
python -c \ | |
'from bs4 import BeautifulSoup; import sys; [print(txt.parent["href"]) for txt in BeautifulSoup(sys.stdin, "html.parser")(text="Desktop")]' \ | |
< $< \ | |
| xargs -n1 curl -OL -C - | |
.page_cache.html: | |
curl -q ${URL} > $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment