From fbcd68d3296b2de5fc72e36aa30174883b3a96ee Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Fri, 7 Jul 2023 11:23:44 +0200 Subject: [PATCH] Update live changes --- run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 662e22f..6a5fb42 100755 --- a/run.sh +++ b/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>/' | tr -d '\n\r\t' | grep -Po '

.*?

' | head -n 1 | sed 's@

\(.*\)

@\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."