After so much time... here I am again to study LC!
Hello to FourthWorld and all those who remember me!
I tried to use the "component" revBrowser and ...as always.... .... I can not use it as I would like!
I would like the full HTML code of this Youtube page including comments. Here is my code ...
Code: Select all
local tBrowserId
on mouseUp
--a-> launch browser
put revBrowserOpencef(the windowId of this stack) into tBrowserId
--b-> "post it" the browser
revbrowserSet tBrowserId, "rect" , the rect of grc "browserimage"
--c-> load url
revBrowserSet tBrowserID, "url", "https://www.youtube.com/watch?v=r0qBaBb1Y-U"
--d-> wait.... wait.... maybe the page loads all!
wait 60 sec with messages
--d-> when document is complete...
browserDocumentComplete tBrowserId, "https://www.youtube.com/watch?v=r0qBaBb1Y-U"
end mouseUp
on browserDocumentComplete
--e-> show me the ENTIRE html text of the pagne!
put revBrowserGet(tBrowserId, "htmltext") into field "fHTML"
end browserDocumentComplete
I think not being able to have "all" the html page source, but only a part ... and not the comments!
Thanks for the help that you give me , and thanks to all livecoders for this wonderful and dynamic language!
Mariasole
(=^‥^=)