Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

26
LINES

< > BotCompany Repo | #1003717 // WORKS: Test vget (extract YouTube download links)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 957K of libraries. Click here for Pure Java version (760L/6K/19K).

!752
lib 1003716 // vget
lib 1003718 // wget
lib 1003719 // commons lang3

import com.github.axet.vget.vhs.YouTubeParser;
import com.github.axet.vget.vhs.YouTubeParser.VideoDownload;
import com.github.axet.vget.vhs.YouTubeInfo.StreamVideo;
import com.github.axet.vget.vhs.YouTubeInfo;

p {
  S url = or(get(args, 0), "http://www.youtube.com/watch?v=Nj6PFaDmp6c");

  YouTubeInfo info = new YouTubeInfo(new URL(url));

  YouTubeParser parser = new YouTubeParser();

  List<VideoDownload> list = parser.extractLinks(info);

  for (VideoDownload d : list) {
    print("Format:" + d.stream);
    print("URL: " + d.url);
    print("Size: " + urlSize(d.url));
    print();
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003717
Snippet name: WORKS: Test vget (extract YouTube download links)
Eternal ID of this version: #1003717/2
Text MD5: e7b67ae1b1ac9210d88d584323fc3704
Transpilation MD5: fa68d3b9e20655c55ac55d5aaf8e28f8
Author: stefan
Category: javax / networking
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-03 01:22:41
Source code size: 697 bytes / 26 lines
Pitched / IR pitched: No / No
Views / Downloads: 529 / 609
Version history: 1 change(s)
Referenced in: [show references]