Ahmedmb Posted January 17, 2007 Share Posted January 17, 2007 How can I extract all links from an HTML page? THX Link to comment Share on other sites More sharing options...
jvanegmond Posted January 17, 2007 Share Posted January 17, 2007 Easy. #include <IE.au3> $oIE = _IE_Example ("basic") $oLinks = _IELinkGetCollection ($oIE) $iNumLinks = @extended MsgBox(0, "Link Info", $iNumLinks & " links found") For $oLink In $oLinks MsgBox(0, "Link Info", $oLink.href) Next github.com/jvanegmond Link to comment Share on other sites More sharing options...
Ahmedmb Posted January 18, 2007 Author Share Posted January 18, 2007 THX how i can read it from saved html file? Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted January 18, 2007 Moderators Share Posted January 18, 2007 how i can read it from saved html file?Open the file with _IECreate(). Link to comment Share on other sites More sharing options...
Ahmedmb Posted January 19, 2007 Author Share Posted January 19, 2007 (edited) THX To all i write a small script to download all links from html page and rename downloaded file to link name Can i get th name of link? what is other members to $oLink Object? THX for help Edited January 19, 2007 by Ahmedmb Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted January 19, 2007 Moderators Share Posted January 19, 2007 Here's a link with all the properties.HTML & DHTML Reference 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