Last active
January 26, 2018 18:33
-
-
Save yuwash/49039fc2d233a9ec7f1b4be2cb128114 to your computer and use it in GitHub Desktop.
Überblick über Wochenangebote bekommen ohne Ablenkung
This file contains 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
#!/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