Sign in to follow this  
Followers 0
KarlosTHG

Download a authenticated HTML after login without images

5 posts in this topic

Hi guys I need to download the html source of a web page after login using IE.au3, but I want to downlaod just the html without the images for a faster download because the page has a lot of pictures and i need to download the page so many times.

Is there a way to make this?

Share this post


Link to post
Share on other sites



Hi guys I need to download the html source of a web page after login using IE.au3, but I want to downlaod just the html without the images for a faster download because the page has a lot of pictures and i need to download the page so many times.

Is there a way to make this?

Ok, i mean i could be completely wrong here, but simply using _IEBodyReadHTML() just reads the HTML and so downloads nothing but the html code?


Instant Lockerz Invite - www.instantlockerzinvite.co.uk

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Are you sure? True, this returns just the HTML Body, but didn't IE have to load the full page in advance, incl. pictures?

I thought more about something like this...

#include <IE.au3>
$sIERegImg = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main","Display Inline Images")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main","Display Inline Images","REG_SZ","no")
$oIE = _IECreate ("www.autoitscript.com")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main","Display Inline Images","REG_SZ",$sIERegImg)
$sHTMLBody = _IEDocReadHTML($oIE)
ConsoleWrite($sHTMLBody & @crlf)
_IEQuit($oIE)

Edit: Pimped the example :D...

Edited by KaFu

Share this post


Link to post
Share on other sites

Thanks KaFu that code works great.

@furrycow: to _IEDocReadHTML you need first to create the page and at this point all pictures are loaded.

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