Update live changes

This commit is contained in:
Christian Wolf 2023-07-07 11:23:44 +02:00
parent 4e51d06a1a
commit fbcd68d329

2
run.sh
View File

@ -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@') 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."