KarlosTHG Posted September 25, 2009 Share Posted September 25, 2009 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 More sharing options...
furrycow Posted September 25, 2009 Share Posted September 25, 2009 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 More sharing options...
jvanegmond Posted September 25, 2009 Share Posted September 25, 2009 furrycow is right, except you need to use _IEDocReadHTML for the full page. github.com/jvanegmond Link to comment Share on other sites More sharing options...
KaFu Posted September 25, 2009 Share Posted September 25, 2009 (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 ... Edited September 25, 2009 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
KarlosTHG Posted September 25, 2009 Author Share Posted September 25, 2009 Thanks KaFu that code works great. @furrycow: to _IEDocReadHTML you need first to create the page and at this point all pictures are loaded. 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