1 | static Pair<S, L<S>> macmillanDefinitions3(S word) { |
2 | S url = "https://www.macmillandictionary.com/search/british/direct/?q=" + urlencode(word); |
3 | S html = loadPageWithUserAgent(url, "Mac Safari"); |
4 | L<S> tok = htmlTok(html); |
5 | ret pair( |
6 | trimJoin(dropTagsAndHTMLComments(unnull(first(findContainerTagWithParamsDeep(tok, "span", "class" := "BASE"))))), |
7 | (L<S>) map(fg(f trimJoin, f dropTagsAndHTMLComments), findContainerTagWithParamsDeep(tok, "span", "class", "DEFINITION"))); |
8 | } |
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: | 423 / 481 |
Version history: | 2 change(s) |
Referenced in: | [show references] |