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

7
LINES

< > BotCompany Repo | #1017638 // downloadOrGetYouTubeComments - download if not there (so may not contain newest comments)

JavaX fragment (include)

static L<Map> downloadOrGetYouTubeComments(S youTubeURL) {
  S youTubeID = extractYoutubeID(youTubeURL);
  File f = youTubeCommentsCacheFile(youTubeID);
  if (fileExists(f))
    ret (L) unstructureLines(loadTextFile(f));
  ret downloadYouTubeComments(youTubeURL);
}

Author comment

Began life as a copy of #1017636

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017638
Snippet name: downloadOrGetYouTubeComments - download if not there (so may not contain newest comments)
Eternal ID of this version: #1017638/2
Text MD5: 600477bced13533c4ee68f5d4c5cd87a
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-31 13:27:29
Source code size: 271 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 225 / 261
Version history: 1 change(s)
Referenced in: [show references]