Skip to content

Instantly share code, notes, and snippets.

@yuwash
Last active January 26, 2018 18:33
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 yuwash/49039fc2d233a9ec7f1b4be2cb128114 to your computer and use it in GitHub Desktop.
Save yuwash/49039fc2d233a9ec7f1b4be2cb128114 to your computer and use it in GitHub Desktop.
Überblick über Wochenangebote bekommen ohne Ablenkung
#!/usr/bin/env bash
[[ -n "$GOPATH" ]] || GOPATH="$HOME/gocode/bin"
PUP="$GOPATH/pup"
if ! [[ -e "$PUP" ]]; then
echo 'please install pup with'
echo 'GOPATH="$HOME/gocode" go get github.com/ericchiang/pup'
exit 1
fi
# Aldi-Sued
# FIXME contains some non-weekly items
wget -O- http://aldi-sued.de/ | "$PUP" '.keyvisual--slider--slide > span > a'
# Lidl
wget -O- https://www.lidl.de/ | "$PUP" 'div.offerteaser__item'
# Norma
wget -O- http://norma-online.de/de/angebote | "$PUP" 'div.main.topic'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment