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

8
LINES

< > TinyBrain | #1008013 - downloadSimpleWikipedia

JavaX fragment (include)

static File downloadSimpleWikipedia() {
  File f = getProgramFile(#1008009, "simplewiki-latest-pages-articles.xml.bz2");
  if (fileSize(f) == 0)
    loadBinaryPageToFile(
"https://dumps.wikimedia.org/simplewiki/latest/simplewiki-latest-pages-articles.xml.bz2", f);
  print("Wikipedia downloaded. Got " + fileSize(f) + " bytes.");
  ret f;
}

Author comment

Began life as a copy of #1008009

download  show line numbers  debug dex   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

No comments. add comment

Snippet ID: #1008013
Snippet name: downloadSimpleWikipedia
Eternal ID of this version: #1008013/7
Text MD5: 5fca61f38419ae9b81ec72b79e1b251c
Author: stefan
Category: javax / a.i. / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-21 01:21:13
Source code size: 347 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 46 / 40
Version history: 6 change(s)
Referenced in: [show]