Libraryless. Click here for Pure Java version (3307L/23K/74K).
1 | !7 |
2 | |
3 | p { |
4 | S html = loadSnippet(#1008441); |
5 | L<S> tok = htmlTok(html); |
6 | //pnl(findContainerTagDeep(tok, "div")); |
7 | //pnl([S t : tok | startsWith(t, "<div ")]); |
8 | //pnl(map(f second, findContainerTagDeep(tok, "div"))); |
9 | //pnl(findContainerTagWithParamsDeep(tok, "div", id := "entryContent")); |
10 | //pnl(findContainerTagWithParamsDeep(tok, "div", "class", "SENSE-BODY")); |
11 | //pnl(findContainerTagWithParamsDeep(tok, "span", "class", "DEFINITION")); |
12 | pnl(map(fg(f trimJoin, f dropTagsAndHTMLComments), findContainerTagWithParamsDeep(tok, "span", "class", "DEFINITION"))); |
13 | print(trimJoin(dropTagsAndHTMLComments(unnull(first(findContainerTagWithParamsDeep(tok, "span", "class" := "BASE")))))); |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008442 |
Snippet name: | Parse Dictionary [dev.] |
Eternal ID of this version: | #1008442/25 |
Text MD5: | 97f7df85cd2a5f00ec637e7b5a54c50f |
Transpilation MD5: | 468e06954a333145cefa56ff18fbf914 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-16 00:55:50 |
Source code size: | 706 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 589 / 732 |
Version history: | 24 change(s) |
Referenced in: | [show references] |