Jump to content

Webden Veri Çekme


korasoglu
 Share

Recommended Posts

Arkadaşlar bu linki view-source:https://www.youtube.com/watch?v=FZ3TAbEcPwEtxt olarak kaydedeceğim nasıl yapabilirim.

1 linke tıkla youtube sayfası açılsın

2 yukarıda explorer veya chrome den veya hangi tarayıcıyı kullanıyorsan 

adres yazdığın çubuga gel sol tıkla linki seç(karala)

sag tık kopyala seç

text dosyası aç  sağ tık yapıştır.

sonra kaydet..

Link to comment
Share on other sites

1 linke tıkla youtube sayfası açılsın

2 yukarıda explorer veya chrome den veya hangi tarayıcıyı kullanıyorsan 

adres yazdığın çubuga gel sol tıkla linki seç(karala)

sag tık kopyala seç

text dosyası aç  sağ tık yapıştır.

sonra kaydet..

yanlış anlamışsın. Sanırım şunu demek istiyor.

view-source:https://www.youtube.com/watch?v=FZ3TAbEcPwE

bu metni olduğu gibi adres satırına yaz ya da aşağıdaki adres açıkken sağ tıkla "sayfa kaynağını görüntüle" var onu seç. Şimdi çıkan html kodlarını istiyor.

https://www.youtube.com/watch?v=FZ3TAbEcPwE

@korasoglu AMS de indirme komutuyla sayfayı indirebilirsin diye hatırlıyorum. Autoit te şu kodu kullanıyorum ben.

BinaryToString(InetRead("http://adress..",1),4)
Link to comment
Share on other sites

AMS'nin HTTP'si her sitede çalışmaz sürekli sorun çıkaracaktır veya eksik kaynak çekecektir sorunu tamamen çözmek için aşağıdaki function'u kullanabilirsin

function ReadHTML(adress)
local Source;
local HTTP = luacom.CreateObject("WinHttp.WinHttpRequest.5.1");
    if ( HTTP ~= nil ) then
        HTTP:Open("GET", adress, 0);
        HTTP:SetRequestHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Firefox/38.0");
        HTTP:Send();
        if ( HTTP.Status == 200 ) then
            Source = HTTP.ResponseBody;
        end
    end
return Source;    
end

NOT : https:// protokolü ile başlayan url'lerde HTTP.Download() değil HTTP.DownloadSecure() kullanman lazım aynı şey HTTP.Submit() içinde geçerli

Link to comment
Share on other sites

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...