Created
November 18, 2015 03:31
-
-
Save flxai/413522d4ca7983f50925 to your computer and use it in GitHub Desktop.
Get lowest price via Geizhals
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
#!/bin/bash | |
# Gets lowest price of an item listen on geizhals.de | |
item="$1" | |
url="https://geizhals.de/${item}.html" | |
price=$(curl -s "$url" | grep lowPrice | sed 's/.*gh_price\">\&euro\;\ \([0-9]\+\),\([0-9]\{2\}\).*/\1.\2€/') | |
echo $price |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment