mi serviva un parser html
il meglio che sono riuscito a produrre e’ stato questo :
IFS=$'\n'
for i in $(export IFS=$" \t\n" ; curl -s -d $(for i in $(echo 1 2 3 4 5 6 18 19 20 21 22 23 P1 P2 P3 P4 P5 P6 P7); do echo -n chkG$i=ON\&; done ; echo -n chkGP8=ON) http://www.spaintiles.info/eng/sector/resultados_fabricante_productos.asp ); do echo $i |grep idfab | awk -F '> ' '{var = $2; split(var,a,"<"); print a[1] ; split($1,b,"\"") ; system("curl -s http://www.spaintiles.info/eng/sector/" b[2] "|grep mailto |awk -F \\\" 47{print $2}47 ") ; print "----" }' ; done
orribile vero ?
Postato in: codesod
