codekasten/fireballsuche.sh

13 lines
352 B
Bash
Executable File

#!/bin/bash
# die sed zeile wandelt html breaks in shell breaks um ;)
# damit das greppen klappt
while true; do
wget -q -O - http://www.fireball.de/livesuche/index.html \
| grep "Klicken Sie auf eine Anfrage" \
| sed s#\<br\ *\/\>#\\n#g \
| grep "http://suche.fireball.de/cgi-bin/pursuit?query=" \
>> fireballsuchbegriffe.txt
sleep 10
done