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

16
LINES

< > BotCompany Repo | #1005226 // Find Boxes On Pouet Homepage

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

Libraryless. Click here for Pure Java version (2907L/21K/66K).

!752

p {
  S html = loadNTSnippet("#3000394");
  L<S> tok = htmlTok(html);
  L<L<S>> toks = concatLists(
    findContainerTag(tok, "h2"),
    findContainerTag(tok, "h3"));
  for (L<S> tok2 : findContainerTag(tok, "th"))
    if (eq(getHtmlTagParameter(tok2.get(1), "class"), "header"))
      toks.add(tok2);
      
  for (L<S> tok2 : toks) {
    print(join(unwrapContainerTag(tok2)));
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005226
Snippet name: Find Boxes On Pouet Homepage
Eternal ID of this version: #1005226/1
Text MD5: d69dd5134f1a5376603e29cb71e524c4
Transpilation MD5: edf85cb3cb718a90c9078d48239d87c5
Author: stefan
Category: javax / web scraping
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-24 01:45:51
Source code size: 405 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 484 / 548
Referenced in: [show references]