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

20
LINES

< > BotCompany Repo | #1003348 // Test Google Video Search (hm. needs new parsing)

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

Uses 616K of libraries. Click here for Pure Java version (116L/2K/4K).

!752

!1002510 // jsoup

import org.jsoup.*;
import org.jsoup.nodes.*;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;

static S userAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1";

p {
  print(findVideo("kim cesarion undressed"));
}

static S findVideo(S query) ctex {
  String googleUrl = "https://www.google.com/search?tbm=vid&q=" + urlencode(query);
  Document doc1 = Jsoup.connect(googleUrl).userAgent(userAgent).timeout(10 * 1000).get();
  print("##\n" + doc1 + "\n##");
  ret null;
}

Author comment

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: 523 / 600
Referenced in: [show references]