Killer Posted August 29, 2006 Share Posted August 29, 2006 I found that InetGet couldn't get some webpages. One of the page is http://www.trendmicro.com/download/viruspattern.asp. Is there anyway to know how to grab such pages? Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted August 29, 2006 Moderators Share Posted August 29, 2006 @Killer - Are you wanting the generated source of the page or are you wanting to download a file linked from that page? Link to comment Share on other sites More sharing options...
Killer Posted August 30, 2006 Author Share Posted August 30, 2006 @Killer - Are you wanting the generated source of the page or are you wanting to download a file linked from that page?I want to grab the source of the page - the html form of the page. Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted August 30, 2006 Moderators Share Posted August 30, 2006 Try this. #include <IE.au3> $sURL = "http://www.trendmicro.com/download/viruspattern.asp" $oIE = _IECreate($sURL) ConsoleWrite(_IEBodyReadHTML($oIE)) Link to comment Share on other sites More sharing options...
Killer Posted August 30, 2006 Author Share Posted August 30, 2006 Can't find the file IE.au3 Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted August 30, 2006 Moderators Share Posted August 30, 2006 Can't find the file IE.au3It is included with v3.2.0.1 and above. Link to comment Share on other sites More sharing options...
Killer Posted August 31, 2006 Author Share Posted August 31, 2006 (edited) Try this. #include <IE.au3> $sURL = "http://www.trendmicro.com/download/viruspattern.asp" $oIE = _IECreate($sURL) ConsoleWrite(_IEBodyReadHTML($oIE)) This code will open the page inside the browser window. I need it saved as a file.html like what InetGet is doing. Edited August 31, 2006 by Killer Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted August 31, 2006 Moderators Share Posted August 31, 2006 @Killer - Do you want all the code written for you? Store the output of _IEBodyReadHTML() in a variable, then look up FileWrite() in the help file. Link to comment Share on other sites More sharing options...
Killer Posted August 31, 2006 Author Share Posted August 31, 2006 @Killer - Do you want all the code written for you?You didn't specify that isn't the full code. I am not an advance user which is why I am asking for help here. I don't see the fuss over helping someone by doing up the code if it is simple. Thanks for the code. I will see if I could stop the browser from opening instead before I ask again. Link to comment Share on other sites More sharing options...
NELyon Posted August 31, 2006 Share Posted August 31, 2006 _IECreate ( [$s_Url = "about:blank" [, $f_tryAttach = 0 [, $f_visible = 1 [, $f_wait = 1 [, $f_takeFocus = -1]]]]] )Good-ol-helpfile Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted August 31, 2006 Moderators Share Posted August 31, 2006 You didn't specify that isn't the full code. I am not an advance user which is why I am asking for help here. I don't see the fuss over helping someone by doing up the code if it is simple.If someone always does the code for you then you will never learn to do it yourself. As long as you show some effort I will help to the best of my abilities.Thanks for the code. I will see if I could stop the browser from opening instead before I ask again._IECreate() has an $f_visible parameter that allows you to open it visible or hidden. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now