Update live changes
This commit is contained in:
parent
4e51d06a1a
commit
fbcd68d329
2
run.sh
2
run.sh
@ -11,6 +11,6 @@ curl -b cookies -c cookies -s -F 'email=ChristianLupus@web.de' -F 'form_id=packt
|
||||
title=$(curl -b cookies -c cookies -s https://www.packtpub.com/packt/offers/free-learning | awk '/<h2>/,/<\/h2>/' | tr -d '\n\r\t' | grep -Po '<h2>.*?</h2>' | head -n 1 | sed 's@<h2>\(.*\)</h2>@\1@')
|
||||
|
||||
|
||||
echo "The packt book today is \"$title\". You can find it under https://www.packtpub.com/packt/offers/free-learning."
|
||||
echo "The packt book today is \"$title\". You can find it under https://www.packtpub.com/eu/free-learning."
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user