Uses 616K of libraries. Click here for Pure Java version (116L/2K/4K).
1 | !752 |
2 | !1002510 // jsoup |
3 | |
4 | import org.jsoup.*; |
5 | import org.jsoup.nodes.*; |
6 | import org.jsoup.nodes.Document; |
7 | import org.jsoup.nodes.Element; |
8 | |
9 | static S userAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1"; |
10 | |
11 | p { |
12 | print(findVideo("kim cesarion undressed")); |
13 | } |
14 | |
15 | static S findVideo(S query) ctex { |
16 | String googleUrl = "https://www.google.com/search?tbm=vid&q=" + urlencode(query); |
17 | Document doc1 = Jsoup.connect(googleUrl).userAgent(userAgent).timeout(10 * 1000).get(); |
18 | print("##\n" + doc1 + "\n##"); |
19 | ret null; |
20 | } |
Began life as a copy of #1002511
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: | #1003348 |
Snippet name: | Test Google Video Search (hm. needs new parsing) |
Eternal ID of this version: | #1003348/1 |
Text MD5: | 5c0fa1c877625eea0e59b1d6b8ec909b |
Transpilation MD5: | 8f08faabe4e5d46065a5e580d39dd69a |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-06-19 23:41:15 |
Source code size: | 561 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 525 / 604 |
Referenced in: | [show references] |