I do not need a window,but I hope it can parse some javascript written URL for too many web page give out the URL not so directly.
How should I do?
Printable View
I do not need a window,but I hope it can parse some javascript written URL for too many web page give out the URL not so directly.
How should I do?
Thanks, but my problem is that, it seems not so easy to deal with some javascript which make the full real url.
like below:
<a href='javascript:get_url()'>something</a>
by the way, is there any easy way to retrive a page content source?
like
QSomeClass q("http://google.com");
q.GetText()
??
We are touching multiple subjects here. Please provide details on what you want to achieve and what you have already tried. If you want contents of a remote page, use QNetworkAccessManager or QHttp to download it. You can execute javascript code from a webpage but you have to extract it first from the page and then feed it to QScriptEngine.
hello wysota,
I have done some work about retrive links from a web page with your hint,use QHttp & QRegExp.But it lays still a big problem is how to retrive some URL which is composite with javascript. The QScriptEngine is not so easy to use.
Some days ago,I may see a interface function like xxxURLs() which may be contained in QWebKit Classes.But now,I just can't find it again. Is it a memery mistake?
Do any one has any idea about how to Get All links completely?
Thanks a lot,