Uses 957K of libraries. Click here for Pure Java version (760L/6K/19K).
1 | !752 |
2 | lib 1003716 // vget |
3 | lib 1003718 // wget |
4 | lib 1003719 // commons lang3 |
5 | |
6 | import com.github.axet.vget.vhs.YouTubeParser; |
7 | import com.github.axet.vget.vhs.YouTubeParser.VideoDownload; |
8 | import com.github.axet.vget.vhs.YouTubeInfo.StreamVideo; |
9 | import com.github.axet.vget.vhs.YouTubeInfo; |
10 | |
11 | p { |
12 | S url = or(get(args, 0), "http://www.youtube.com/watch?v=Nj6PFaDmp6c"); |
13 | |
14 | YouTubeInfo info = new YouTubeInfo(new URL(url)); |
15 | |
16 | YouTubeParser parser = new YouTubeParser(); |
17 | |
18 | List<VideoDownload> list = parser.extractLinks(info); |
19 | |
20 | for (VideoDownload d : list) { |
21 | print("Format:" + d.stream); |
22 | print("URL: " + d.url); |
23 | print("Size: " + urlSize(d.url)); |
24 | print(); |
25 | } |
26 | } |
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: | 530 / 610 |
Version history: | 1 change(s) |
Referenced in: | [show references] |