I am trying to learn API calls. I want to grab only first paragraph and show it into msgbox from this site - https://en.wikipedia.org/wiki/AutoHotkey
Please look at this image-
in the above image you can see the paragraph marked in red box, i want to grab it and show it into msgbox using API calls.
I have these codes-
Code: Select all
url := "https://en.wikipedia.org/wiki/AutoHotkey"
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("POST", url, false)
whr.Send()
html := whr.ResponseText
MsgBox, % html
I know it can be done easily using web scrapping like browser automation using selenium etc, but i want to do it using API class.
Please help and guide..
Thanks a lot..