1 | static L<S> googleAutoComplete(S query) {
|
2 | S url = "http://suggestqueries.google.com/complete/search?client=firefox&q=" + urlencode(query); |
3 | L data = cast jsonDecode(loadPage(url)); |
4 | ret (L) data.get(1); |
5 | } |
Began life as a copy of #1003017
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: | #1011935 |
| Snippet name: | googleAutoComplete - call Google auto complete |
| Eternal ID of this version: | #1011935/1 |
| Text MD5: | f18c7b0d432a69bbf2ca8b0b747eacfd |
| Author: | stefan |
| Category: | javax / networking |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-11-10 05:17:12 |
| Source code size: | 212 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 653 / 700 |
| Referenced in: | [show references] |