Sign in to follow this  
Followers 0
Killer

InetGet can't grab some webpages

11 posts in this topic




@Killer - Are you wanting the generated source of the page or are you wanting to download a file linked from that page?

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites

Can't find the file IE.au3

Share this post


Link to post
Share on other sites

Can't find the file IE.au3

It is included with v3.2.0.1 and above.

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by Killer

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites

_IECreate ( [$s_Url = "about:blank" [, $f_tryAttach = 0 [, $f_visible = 1 [, $f_wait = 1 [, $f_takeFocus = -1]]]]] )

Good-ol-helpfile

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0