Extremadura: fecha dinámica de cada día en mainURL (olvido en el commit anterior)

main
Pseudavid 2 weeks ago
parent ea6080ceab
commit 138c921eb5

@ -59,7 +59,9 @@ function clamancha {
function extremadura {
comunidad="Extremadura"
pdfFile=".boletin$comunidad.pdf"
mainURL="https://doe.juntaex.es/ultimosdoe/mostrardoe.php?fecha=20250411&t=o"
mainURL="https://doe.juntaex.es/ultimosdoe/mostrardoe.php?fecha="
mainURL+=$(date +"%Y%m%d")
mainURL+="t=o"
pdfURL1="https://doe.juntaex.es"
pdfURL2=$(wget -q $mainURL -O - | grep -i -o "<a class=\"enlace_dis\".*Descargar el DOE completo en formato PDF" | grep -o -i "/pdfs.*\.pdf")
pdfURL="${pdfURL1}${pdfURL2}"

Loading…
Cancel
Save