Libraryless. Click here for Pure Java version (741L/7K/20K).
!747 m { static class Party { S name, link, weblink; } static new L<Party> parties; static S html; // can set this from client programs !include #1000850 // TableFinder p { // get html if (html == null) { S htmlID = "#3000025"; if (args.length != 0) htmlID = args[0]; html = loadSnippet(htmlID); } // analysis new TableFinder tf; tf.go(html); for (int i = 1; i < tf.data.size(); i++) { S cell = tf.data.get(i).get(0); parseParty(htmlcoarsetok(cell)); } // print success! print(parties.size() + " parties found!"); } static void parseParty(L<S> tok) { if (tok.size() == 1) return; new Party p; p.name = htmldecode(tok.get(2)); p.link = linkFrom(tok.get(1)); if (tok.size() > 5) p.weblink = linkFrom(tok.get(5)); print("Party found! " + structure(p)); parties.add(p); } }
Began life as a copy of #1000846
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1000849 |
Snippet name: | Get names of some parties from pouet (with links, static) |
Eternal ID of this version: | #1000849/1 |
Text MD5: | 6a5465c920dfa2d95d3ec138bd7200da |
Transpilation MD5: | 34b3fa7c63c5d3c21413ff1e4301cd7f |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-08-30 17:34:53 |
Source code size: | 964 bytes / 44 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 753 / 992 |
Referenced in: | [show references] |