• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

Web ten altın fiyatlarını almak.

Merhaba Evren hocam, aşağıdaki gibi işinize yararmı?

Kod:
Sub Alt()
Set a = CreateObject("htmlFile")
Set x = CreateObject("MSXML2.XMLHTTP")
x.Open "Get", "http://bigpara.hurriyet.com.tr/altin", "False"
x.send
'Application.Wait (Now + TimeValue("0:00:02"))
a.body.innerHTML = x.responseText
On Error Resume Next
Set c = a.getElementById("content")
For Each j In c.getElementsByTagName("*")
If j.classname = "tBody" Then
For Each k In j.getElementsByTagName("ul")
s = s + 1
Cells(s, 1) = k.Children(0).innertext
Cells(s, 2) = k.Children(1).innertext
Cells(s, 3) = k.Children(2).innertext
Next
Exit For
End If
Next
End Sub
 
Merhaba Evren hocam, aşağıdaki gibi işinize yararmı?

Kod:
Sub Alt()
Set a = CreateObject("htmlFile")
Set x = CreateObject("MSXML2.XMLHTTP")
x.Open "Get", "http://bigpara.hurriyet.com.tr/altin", "False"
x.send
'Application.Wait (Now + TimeValue("0:00:02"))
a.body.innerHTML = x.responseText
On Error Resume Next
Set c = a.getElementById("content")
For Each j In c.getElementsByTagName("*")
If j.classname = "tBody" Then
For Each k In j.getElementsByTagName("ul")
s = s + 1
Cells(s, 1) = k.Children(0).innertext
Cells(s, 2) = k.Children(1).innertext
Cells(s, 3) = k.Children(2).innertext
Next
Exit For
End If
Next
End Sub

Merhaba.Alttaki kod satırıyla ilgili detaylı türkçe kaynak varmıdır yada siz açıklayabilirmisiniz?
Son zamanlarda çok denk geldiği için ilgimi çekti.Sağolun.
CreateObject("MSXML2.XMLHTTP")
 
Sayın PLINT;
Teşekkür ederim.
İyi geceler.
 
Geri
Üst