Jump to content

Download a authenticated HTML after login without images


KarlosTHG
 Share

Recommended Posts

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?

Link to comment
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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...