static Pair<S, L<S>> macmillanDefinitions3(S word) { S url = "https://www.macmillandictionary.com/search/british/direct/?q=" + urlencode(word); S html = loadPageWithUserAgent(url, "Mac Safari"); L<S> tok = htmlTok(html); ret pair( trimJoin(dropTagsAndHTMLComments(unnull(first(findContainerTagWithParamsDeep(tok, "span", "class" := "BASE"))))), (L<S>) map(fg(f trimJoin, f dropTagsAndHTMLComments), findContainerTagWithParamsDeep(tok, "span", "class", "DEFINITION"))); }
Began life as a copy of #1008457
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: | #1011334 |
Snippet name: | macmillanDefinitions3 - uses search form |
Eternal ID of this version: | #1011334/3 |
Text MD5: | f7fe1e8054c41e9e0ba81afd82b7b16c |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-25 00:16:01 |
Source code size: | 493 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 421 / 478 |
Version history: | 2 change(s) |
Referenced in: | [show references] |