Jump to content

[Soru] Siteden Veri Çekmek


PColik
 Share

Recommended Posts

Merhaba arkadaşlar. AMS ile herhangi bir web sayfasında ki veriyi uygulama üzerinden görüntülemekle ilgili bir soru soracağım. Forum da daha önce böyle bir konu açıldığını çok iyi hatırlıyorum. Fakat konuyu bulamadım. Bu yüzden öncelikle sürç-i lisan ettiysek affola :)

 

Sizlere tam olarak yapmak istediğim şeyi anlatıp sizi yormak istemiyorum. Çok basit birşey sorucam gerisini kendim bulabilirim.

Mesela en basitinden www.doviz.com internet sitesinde ki Amerikan Doları'nın satış fiyatını AMS'de Label1'e yazdırmak istiyorum. Birkaç, hatta oldukça fazla deneme yaptım ama bir türlü bulamadım. Yardımlarınızı bekliyorum. Şimdiden teşekkürler.

Link to comment
Share on other sites

mobilde oldugum icin ornek veremiyorum fakat ilk once sitenin kaynak kodlarini cek sonra kaynaktaki o bolumu strring.match() ile cekip labele yadir cok basit birsey gercekten sayfa kaynagini cekmek icin winhttp servisini kullan ams deki http ile olmaz


Sent from my iPhone using Tapatalk

Edited by milano88
Link to comment
Share on other sites

biraz geç oldu kardeşim kusura bakma ancak geçebildim bilgisayar başına

local source = HTTP.Submit("http://www.doviz.com/", {}, SUBMITWEB_GET, 20, 80, nil, nil);
if ( source ~= "" ) then
    local str = source:match("<a href=\"http://kur%.doviz%.com/serbest%-piyasa/amerikan%-dolari\"(.-)</a>");
    if ( str ) then
        local satis = str:match("row2\">(.-)<");
        if ( satis ) then
            Dialog.Message("", satis);
        end
    end
end

Link to comment
Share on other sites

  • 4 hafta sonra ...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...