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

23
LINES

< > BotCompany Repo | #1010733 // Download all data snippets from SourceForge (OK)

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

Download Jar. Libraryless. Click here for Pure Java version (6095L/40K).

!7

p {
  bool errors = false;
  L<S> l = tlft(loadPage("http://eyeocr.sourceforge.net/filestore/filestore.php?cmd=ls"));
  for i, S s over l: {
    loadPage_forcedTimeout = 10000;
    consoleStatusAndPrint(i + "/" + l(l));
    if (startsWith(s, "#")) continue;
    print(s);
    File f = getProgramFile(s);
    if (hasFile(f)) continue;
    S url = "http://eyeocr.sourceforge.net/filestore/filestore.php?cmd=serve&file=" + urlencode(s);
    try {
      saveBinaryFile(f, loadBinaryPage(url));
    } catch e {
      printShortException(e);
      errors = true;
    }
  }
  consoleStatus(print(errors ? "Done with errors" : "Done!"));
  print("Directory size: " + toM(guessClusteredDirSize()) + " MB");
}

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: #1010733
Snippet name: Download all data snippets from SourceForge (OK)
Eternal ID of this version: #1010733/9
Text MD5: 7fb6cb1e5eeabdc2fbb572b3650bc730
Transpilation MD5: d0ef2c37d97499ed2069666c13c61c15
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-25 12:54:10
Source code size: 725 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 439 / 1195
Version history: 8 change(s)
Referenced in: [show references]