j'ai déjà eu besoin de ce genre de chose et j'utilisais cette commande
Code : Tout sélectionner
wget -O - -q --user-agent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "http://vigilance.meteofrance.com/Bulletin_sans.html?a=dept75&b=2&c=1" > meteo.txtCode : Tout sélectionner
<!-- CADRE INFO VIGILANCE -->
<table border="0" cellpadding="0" cellspacing="0" width="495" height="90" >
<tr>
<td class="texte12_bull" VALIGN="top colspan="1" rowspan="1">
<script>
document.write("<iframe width='501' height='220' frameborder='0' scrolling='no' src='bulletin_SIV_complet.html?a="+dept+"&b=1&c='></iframe> ");
if(couleur==1)document.write(" <span style='background-color: rgb(40, 215, 97);'> Département en vigilance verte.</span> </b><br> Pas de vigilance particulière. ");
else if(couleur==2)document.write(" <span style='background-color: rgb(255, 255, 0);'> Département en vigilance "+ tab_baratin_plus_cote[dept]+"</b></span><br> Soyez attentif si vous pratiquez des activités sensibles au risque météorologique ou à proximité d′un rivage ou d′un cours d′eau; des phénomènes habituels dans la région mais occasionnellement et localement dangereux sont en effet prévus; tenez-vous au courant de l’évolution de la situation.");
else if(couleur==3)document.write(" <span style='background-color: rgb(255, 196, 0);'> Département en vigilance "+ tab_baratin_orange[dept]+"</span> </b><br> ");
else if(couleur==4)document.write(" <span style='background-color: rgb(255, 0, 0);'> Département en vigilance "+ tab_baratin_rouge[dept]+"</span> </b><br> ");
</script>
<br><br></td></tr></table>alors que quand j'enregistre sous windows/firefox j'ai ca
Code : Tout sélectionner
<!-- CADRE INFO VIGILANCE -->
<table height="90" border="0" cellpadding="0" cellspacing="0" width="495">
<tbody><tr>
<td class="texte12_bull" 1"="" rowspan="1" valign="top colspan=">
<script>
document.write("<iframe width='501' height='220' frameborder='0' scrolling='no' src='bulletin_SIV_complet.html?a="+dept+"&b=1&c='></iframe> ");
if(couleur==1)document.write(" <span style='background-color: rgb(40, 215, 97);'> Département en vigilance verte.</span> </b><br> Pas de vigilance particulière. ");
else if(couleur==2)document.write(" <span style='background-color: rgb(255, 255, 0);'> Département en vigilance "+ tab_baratin_plus_cote[dept]+"</b></span><br> Soyez attentif si vous pratiquez des activités sensibles au risque météorologique ou à proximité d′un rivage ou d′un cours d′eau; des phénomènes habituels dans la région mais occasionnellement et localement dangereux sont en effet prévus; tenez-vous au courant de l’évolution de la situation.");
else if(couleur==3)document.write(" <span style='background-color: rgb(255, 196, 0);'> Département en vigilance "+ tab_baratin_orange[dept]+"</span> </b><br> ");
else if(couleur==4)document.write(" <span style='background-color: rgb(255, 0, 0);'> Département en vigilance "+ tab_baratin_rouge[dept]+"</span> </b><br> ");
</script><iframe scrolling="no" src="Bulletin%20vigilance%20M%C3%A9t%C3%A9o%20France_fichiers/bulletin_SIV_complet.htm" frameborder="0" height="220" width="501"></iframe> <span style="background-color: rgb(255, 255, 0);"> Département en vigilance jaune Orages</span><br>
Soyez attentif si vous pratiquez des activités sensibles au risque
météorologique ou à proximité d′un rivage ou d′un cours d′eau; des
phénomènes habituels dans la région mais occasionnellement et localement
dangereux sont en effet prévus; tenez-vous au courant de l’évolution
de la situation.
<br><br></td></tr></tbody></table>Avez vous une commande wget/curl qui marche avec les infos?
Merci