Page 1 of 1

Get indirect links

Posted: 23 Jan 2019, 04:41
by user549
I use WinHttpRequest to download a page to get video source but the downloaded page with empty src tag. How could I get the video source in this case, please help. Thanks.

Re: Get indirect links  Topic is solved

Posted: 23 Jan 2019, 14:06
by safetycar
Probably the src is added later through javascript.
Each web page works in a different way, so I can't tell for sure.
Try playing with this:

Code: Select all

ie := ComObjCreate("InternetExplorer.Application")
ie.Navigate(Url)
Sleep, 1000 ; 1 second for the page and js to load. Adjust if needed.
body := ie.document.body.outerHTML

Re: Get indirect links

Posted: 25 Jan 2019, 04:51
by user549
It works.
Thanks for your help.