static BufferedImage googleImageSearchFirst(S q) { S html = str(googleImageSearch_loadPage(q)); S s = regexpFirstGroup("data:image/jpeg;base64,([^\"]+)", html); if (s == null) null; try { ret decodeImage(base64decode(unquote("\"" + s + "\""))); } on fail { print("Tried to decode: " + quote(s)); } }
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: | 748 / 728 |
| Referenced in: | [show references] |