1 | static BufferedImage googleImageSearchFirst(S q) { |
2 | S html = str(googleImageSearch_loadPage(q)); |
3 | S s = regexpFirstGroup("data:image/jpeg;base64,([^\"]+)", html); |
4 | if (s == null) null; |
5 | try { |
6 | ret decodeImage(base64decode(unquote("\"" + s + "\""))); |
7 | } on fail { |
8 | print("Tried to decode: " + quote(s)); |
9 | } |
10 | } |
Began life as a copy of #1007251
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: | #1007254 |
Snippet name: | Backup of googleImageSearchFirst - get one of the inlined images |
Eternal ID of this version: | #1007254/1 |
Text MD5: | 55430416b3d1094a930e274de05f2b2f |
Author: | stefan |
Category: | javax / networking |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-13 00:59:11 |
Source code size: | 328 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 513 / 503 |
Referenced in: | [show references] |