Skip to content

Instantly share code, notes, and snippets.

@alhirzel
Created March 24, 2023 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alhirzel/ec5172676415591f6071e49cf6521488 to your computer and use it in GitHub Desktop.
Save alhirzel/ec5172676415591f6071e49cf6521488 to your computer and use it in GitHub Desktop.
Downloader for SmartCreative wallpapers
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