You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<"${folder}"/processing/output.html scrape -be '//table/tbody/tr'| xq -c '.html.body.tr[]|{name:.td[0].a."#text",URL:.td[0].a."@href"}'| mlr --j2c label citta,URL then put '$URL=sub($URL,"http:","https:")'>"${folder}"/data/ondate-calore_PDF.csv
60
+
<"${folder}"/processing/output.html scrape -be '//table/tbody/tr'| xq -c '.html.body.tr[]|{name:.td[0].a."#text",URL:.td[0].a."@href"}'| mlr --j2c label citta,URL then put '$URL=sub($URL,"http:","https:")'>"${folder}"/data/ondate-calore_PDF.csv
62
61
63
62
# URL completo per i PDF
64
63
mlr -I --csv put '$URL="https://www.salute.gov.it".$URL'"${folder}"/data/ondate-calore_PDF.csv
65
64
66
65
# trasforma struttura dati da wide a long
67
-
mlr --csv --from "${folder}"/processing/ondate-calore.csv label citta then reshape -r "[0-9]" -o data,livello then sort -r data -f citta then put '$data_estrazione="'"$data"'"'>"${folder}"/data/ondate-calore_latest.csv
66
+
mlr --csv --from "${folder}"/processing/ondate-calore.csv label citta then reshape -r "[0-9]" -o data,livello then sort -r data -f citta then put '$data_estrazione="'"$data"'"'>"${folder}"/data/ondate-calore_latest.csv
0 commit comments