|
|
|
@ -66,12 +66,12 @@ function valencia {
|
|
|
|
|
comunidad="Valencia"
|
|
|
|
|
pdfFile=".boletin$comunidad.pdf"
|
|
|
|
|
idDogv=$(cat .lastDogv)
|
|
|
|
|
mainURL="https://dogv.gva.es/datos/$(date +"%Y/%m/%d")/pdf/dogv_$(date +"%Y")_$idDogv" # https://dogv.gva.es/datos/2025/02/14/pdf/dogv_2025_10047_es.pdf
|
|
|
|
|
mainURL="https://dogv.gva.es/datos/$(date +"%Y/%m/%d")/pdf/dogv_$(date +"%Y")_$idDogv"
|
|
|
|
|
mainURL="$(echo $mainURL)_es.pdf"
|
|
|
|
|
mainURLStatus=$(wget -NS "$mainURL" 2>&1 | grep "HTTP/" | awk '{print $2}')
|
|
|
|
|
until [ $mainURLStatus != 404 ]
|
|
|
|
|
do
|
|
|
|
|
mainURL="https://dogv.gva.es/datos/$(date +"%Y/%m/%d")/pdf/dogv_$(date +"%Y")_$idDogv" # https://dogv.gva.es/datos/2025/02/14/pdf/dogv_2025_10047_es.pdf
|
|
|
|
|
mainURL="https://dogv.gva.es/datos/$(date +"%Y/%m/%d")/pdf/dogv_$(date +"%Y")_$idDogv"
|
|
|
|
|
mainURL="$(echo $mainURL)_es.pdf"
|
|
|
|
|
let idDogv=$idDogv+1
|
|
|
|
|
sleep 1
|
|
|
|
|