URL: https://linuxfr.org/users/niol_/journaux/la-coupe-du-monde-de-football-sur-internet Title: La coupe du monde de football sur Internet Authors: niol Date: 2006年06月22日T10:37:20+02:00 Tags: firefox Score: 0 Suite à un concours de pronostics au bureau, il a bien fallut que je m'intéresse aux résultats des matchs. Et c'est là que c'est le drame : j'ai du parcourir toute une partie de l'Internet que je ne parcourais pas d'habitude : sites en flash, illisibles, pleins de pubs, etc. Et aucun des nouveaux trucs pratiques d'exploités (genre RSS, ajax, etc) ou je ne les ai pas trouvés. Je vous livre quand même le fruit de mes recherches. Matchs en direct : [http://4thegame.sportbox.tv/football/live/index.php](http://4thegame.sportbox.tv/football/live/index.php) Résultats : [http://www9.hpi-web.de/footiefox/iframe_fr_7.html](http://www9.hpi-web.de/footiefox/iframe_fr_7.html) Extensions firefox : [http://www.footiefox.com/](http://www.footiefox.com/) [http://www.mozilla-europe.org/en/add-ons/jogacompanion/](http://www.mozilla-europe.org/en/add-ons/jogacompanion/) (mais ne permet pas de suivre deux matchs en même temps) **Par mail** J'ai bricolé un petit truc pour recevoir les scores par mail à chaque but. #!/bin/bash # worldcup.sh SCORES_FILE=/home/niol/tmp/worldcup/scores.txt OLDSCORES_FILE=/home/niol/tmp/worldcup/old_scores.txt [ -e $SCORES_FILE ] && cp $SCORES_FILE $OLDSCORES_FILE lynx -dump [http://www9.hpi-web.de/footiefox/iframe_fr_7.html](http://www9.hpi-web.de/footiefox/iframe_fr_7.html) | head -n-5 | cut -b 8-56 > $SCORES_FILE echo "[http://www.footiefox.com](http://www.footiefox.com)" >> $SCORES_FILE [ -e $OLDSCORES_FILE ] && DIFF=$(diff $OLDSCORES_FILE $SCORES_FILE) [ -n "$DIFF" ] && cat $SCORES_FILE | mailx -s "World cup 2006 scores" worldcup2006@domain.org Et la crontab associée : 0 7 * 6,7 1-5 /home/niol/tmp/worldcup/worldcup.sh */5 16-18 22,23 6 * /home/niol/tmp/worldcup/worldcup.sh */5 17-19 26,27 6 * /home/niol/tmp/worldcup/worldcup.sh */5 17-19 30 6 * /home/niol/tmp/worldcup/worldcup.sh (qui n'envoie les mails que pour les matchs de l'après-midi, quand on est au boulot) C'est basique mais ca a l'air de fonctionner. D'autres astuces?

AltStyle によって変換されたページ (->オリジナル) /