Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to see the direct link?
#2
Code:
Copy      Help
var destDir = @"C:/test/midi";
filesystem.createDirectory(destDir);
var w = wnd.find(1, "Pop MIDI Files - * - Google Chrome", "Chrome_WidgetWin_1");
foreach (var e in w.Elm["web:LINK", "download"].FindAll()) {
    print.it(e.Value);
    var r = internet.http.Get(e.Value, true);
    //print.it(r);
    var filename = r.Content.Headers.ContentDisposition.FileName;
    print.it(filename);
    filesystem.saveBytes(destDir + "\\" + filename, r.Bytes());
    break;
}


Messages In This Thread
How to see the direct link? - by birdywen - 03-09-2024, 03:11 AM
RE: How to see the direct link? - by Gintaras - 03-09-2024, 05:33 AM
RE: How to see the direct link? - by birdywen - 03-09-2024, 07:06 AM
RE: How to see the direct link? - by Gintaras - 03-09-2024, 07:14 AM
RE: How to see the direct link? - by birdywen - 03-09-2024, 06:29 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)