based this link:
www.anncsu.gov.it
how to loop all link, and download the related zip file based
indirizzario regione name of regione
save the zip file Abruzzo.zip, in c:\mydir\
for example
note:
this is my last code for test:
Sub testit()
Dim httpObject As Object
Set httpObject = CreateObject("MSXML2.XMLHTTP")
Dim doc As Object
Set doc = CreateObject("htmlfile")
Dim links As Variant
Dim L As Variant
With httpObject
.Open "GET", "https://www.anncsu.gov.it/it/consul...di-ai-servizi-di-dowload-massivo-in-Open-data", False
.send
Do Until httpObject.ReadyState = 4
Loop
doc.body.innerhtml = .responseText
Debug.Print (doc.body.innerhtml)
Set links = doc.getElementsByTagName("a")
For Each L In links
Debug.Print L.href
Next L
End With
End Sub
Accedi ai servizi di dowload massivo in Open data
Accedi ai servizi di dowload massivo in Open data
how to loop all link, and download the related zip file based
indirizzario regione name of regione
save the zip file Abruzzo.zip, in c:\mydir\
for example
note:
this is my last code for test:
Sub testit()
Dim httpObject As Object
Set httpObject = CreateObject("MSXML2.XMLHTTP")
Dim doc As Object
Set doc = CreateObject("htmlfile")
Dim links As Variant
Dim L As Variant
With httpObject
.Open "GET", "https://www.anncsu.gov.it/it/consul...di-ai-servizi-di-dowload-massivo-in-Open-data", False
.send
Do Until httpObject.ReadyState = 4
Loop
doc.body.innerhtml = .responseText
Debug.Print (doc.body.innerhtml)
Set links = doc.getElementsByTagName("a")
For Each L In links
Debug.Print L.href
Next L
End With
End Sub
Last edited: