Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
the website you're trying to steal from said:© 2019 Gwind srl
Tuttitalia.it said:"The use and partial reproduction of the contents of the Site is permitted provided that Tuttitalia.it is always cited as a source and, if applicable, that a direct and visible link is inserted to or to an internal page."
strongm said:So I don't think we need to worry that 2009luca is doing anything wrong.
[blue]Option Explicit
Public Sub GetBankIcons()
Dim objIE As InternetExplorer
Dim lp As Integer
Set objIE = New InternetExplorer
objIE.Navigate2 "[URL unfurl="true"]https://www.tuttitalia.it/banche/classifica/"[/URL]
With objIE.Document
Dim freddy As IHTMLElementCollection
With .getElementsByClassName("ao")
For lp = 0 To .Length - 1
Debug.Print .Item(lp).src
SaveFileFromURL .Item(lp).src, "<target path>" [green] ' Change target path to the path you want to save the icons to[/green]
Next
End With
End With
End Sub
Public Sub SaveFileFromURL(url As String, strPath As String, Optional filename As String)
Dim adTypeText As Long
Dim adSaveCreateOverWrite As Long
Dim BinaryStream As Object
Dim httpreq As Object
Dim fso As New FileSystemObject
adTypeText = 1
adSaveCreateOverWrite = 2
If filename = "" Then filename = fso.GetFileName(url)
Set httpreq = CreateObject("Msxml2.XMLHttp.6.0")
httpreq.Open "GET", url, False
httpreq.send
If httpreq.Status = 200 Then
Set BinaryStream = CreateObject("ADODB.Stream")
BinaryStream.Type = adTypeText
BinaryStream.Open
BinaryStream.Write httpreq.responseBody
BinaryStream.SaveToFile fso.BuildPath(strPath, filename), adSaveCreateOverWrite
End If
End Sub[/blue]
strongm said:the icons are the logos of the banks.