Mouahaha
J'aime beaucoup cette méthode :lol:
Bon j'ai cours jusqu'a 17h mais ce soir je m'y file 🙂
Par contre, tu tente direct wget et t'incrémentes si il retourne une erreur ? Ou y'a un moyen de "pinger" si le lien existe ou non ?
EDIT :
--spider
When invoked with this option, Wget will behave as a Web spider,
which means that it will not download the pages, just check that
they are there. For example, you can use Wget to check your book‐
marks:
ras@ras-laptopoulos:~$ wget --spider http://vod-flash.canalplus.fr/LE_PETIT_JOURNAL_ACTU_CHRONIQUE_080227_CAN_18861_video_H.flv
--12:34:03-- http://vod-flash.canalplus.fr/LE_PETIT_JOURNAL_ACTU_CHRONIQUE_080227_CAN_18861_video_H.flv
=> `LE_PETIT_JOURNAL_ACTU_CHRONIQUE_080227_CAN_18861_video_H.flv'
Résolution de vod-flash.canalplus.fr... 82.96.58.38, 82.96.58.33
Connexion vers vod-flash.canalplus.fr|82.96.58.38|:80... connecté.
requête HTTP transmise, en attente de la réponse... 404 Not Found
12:34:04 ERREUR 404: Not Found.
ras@ras-laptopoulos:~$ wget --spider http://vod-flash.canalplus.fr/LE_PETIT_JOURNAL_ACTU_CHRONIQUE_080227_CAN_18862_video_H.flv
--12:34:07-- http://vod-flash.canalplus.fr/LE_PETIT_JOURNAL_ACTU_CHRONIQUE_080227_CAN_18862_video_H.flv
=> `LE_PETIT_JOURNAL_ACTU_CHRONIQUE_080227_CAN_18862_video_H.flv'
Résolution de vod-flash.canalplus.fr... 82.96.58.38, 82.96.58.33
Connexion vers vod-flash.canalplus.fr|82.96.58.38|:80... connecté.
requête HTTP transmise, en attente de la réponse... 200 OK
Longueur: 28 715 386 (27M) [video/x-flv]
200 OK
Avec mes connaissances en bash ça risque de donner un truc très très sale mais ce sera interessant pour mon apprentissage 🙂