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

19
LINES

< > BotCompany Repo | #1001848 // Swing: Visitors today

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

Libraryless. Click here for Pure Java version (1754L/12K/40K).

1  
!752
2  
!image classes
3  
4  
m {
5  
  p {
6  
    showBigText("Visitors today", "getTextAndTitle", 30000);
7  
  }
8  
  
9  
  static S[] getTextAndTitle() {
10  
    S in = loadPage("http://tinybrain.blog.de");
11  
    
12  
    // Code from solution of #1000455
13  
    Matcher m = Pattern.compile("<dd class=\"visitorsToday\">(\\d+)<br /></dd>").matcher(((String) in));
14  
    in = m.find() ? m.group(1) : "";
15  
16  
    print(in);
17  
    ret new S[] {in, in + " visitors today"};
18  
  }
19  
}

Author comment

Began life as a copy of #1000655

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: #1001848
Snippet name: Swing: Visitors today
Eternal ID of this version: #1001848/1
Text MD5: 29c7e75019a0adc2e23b460c997e9380
Transpilation MD5: 4aae217cc5c267b9158c39d8f8c8ca0c
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-27 17:27:35
Source code size: 451 bytes / 19 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 463 / 511
Referenced in: [show references]