WordsAPI

Discuss other useful utilities, general computing tips & tricks, Internet resources, etc.
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

WordsAPI

Post by BoBo » 26 Apr 2022, 13:19

https://www.wordsapi.com (2.5K free requests a day)

8-)

User avatar
TheDewd
Posts: 1510
Joined: 19 Dec 2013, 11:16
Location: USA

Re: WordsAPI

Post by TheDewd » 25 May 2022, 14:39

Code: Select all

#SingleInstance, Force

HttpReq := ComObjCreate("WinHttp.WinHttpRequest.5.1")

HttpReq.Open("GET", "https://www.wordsapi.com/", True)
HttpReq.Send()
HttpReq.WaitForResponse()

RegExMatch(HttpReq.ResponseText, "var\swhen\s=\s'(.*?)'", When)
RegExMatch(HttpReq.ResponseText, "var\sencrypted\s=\s'(.*?)'", Encrypted)

HttpReq.Open("GET", "https://www.wordsapi.com/mashape/words/PC?when=" When1 "&encrypted=" Encrypted1, True)
HttpReq.Send()
HttpReq.WaitForResponse()

Doc := ComObjCreate("HTMLFile")
Doc.Write("<meta http-equiv=""X-UA-Compatible"" content=""IE=9"">")

MsgBox, % Doc.parentWindow.eval("(" HttpReq.ResponseText ")").results.0.definition

BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: WordsAPI

Post by BoBo » 27 May 2022, 14:12

@TheDewd - Thx :thumbup:

brownharris561
Posts: 3
Joined: 05 Sep 2022, 03:35

Re: WordsAPI

Post by brownharris561 » 07 Sep 2022, 02:43

Is this tool can translate EN to De correctly?

ozzii
Posts: 481
Joined: 30 Oct 2013, 06:04

Re: WordsAPI

Post by ozzii » 07 Sep 2022, 05:36

This is not a translation tool, so no.

Post Reply

Return to “Other Utilities & Resources”