diff --git a/kafeterya.sh b/kafeterya.sh index db62987..75e9f1e 100755 --- a/kafeterya.sh +++ b/kafeterya.sh @@ -3,7 +3,6 @@ url='https://kafeterya.metu.edu.tr/' outfile='kafe.txt' -echo "Günün yemeği:" > ${outfile} -curl -s ${url} | /snap/bin/xmllint --html --xpath '//div[@class="yemek"]/p' --format - | sed -e 's/<[^>]*>//g' -e '/*/d' -e 's/^/+ /g' -e 's/./\L&/g4' >> ${outfile} +echo "# Günün yemeği:" >> ${outfile} +curl -s ${url} | grep "

" | cut -d '>' -f3 | cut -d '<' -f1 | sed -e 's/<[^>]*>//g' -e '/*/d' -e 's/^/+ /g' -e 's/./\L&/g4' | sed '5,6d'| less >> ${outfile} -python3 kafeterya.py