knight666 Posted May 7, 2007 Posted May 7, 2007 I was wondering, is there a stable way to extract the hyperlinks from a website? I'm using Firefox, and the way I do it right now is this: -Press right mouse button on a certain location -Press ctrl + b (to show source) -Press ctrl + a, ctrl + c -Do some hyperlink searching voodoo -Press ctrl + F4 But if there happens to be an image on that exact location, showing the website's source won't work and obviously it won't work in IE either. Please help.
Shevilie Posted May 7, 2007 Posted May 7, 2007 Though you are using Firefox have a look at the IE UDF since it have a build in capture all link function, would be a lot easier Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
Clouds Posted May 7, 2007 Posted May 7, 2007 Isn't this easier (in FF): -Press ctrl+U (show page source) -Do some hyperlink searching voodoo -Press ctrl+F4 Guess that is only works when the page has no frames though... -- Clouds®
knight666 Posted May 8, 2007 Author Posted May 8, 2007 Isn't this easier (in FF):-Press ctrl+U (show page source)-Do some hyperlink searching voodoo-Press ctrl+F4Guess that is only works when the page has no frames though...--Clouds®Hey, thanks, that did the trick. >< I looked in Firefox's manual, but I didn't see that one listed.
Moderators big_daddy Posted May 8, 2007 Moderators Posted May 8, 2007 You might also try... #include <IE.au3> $sURL = "http://www.autoitscript.com/autoit3/" $sSearch = "SciTE" $oIE = _IECreate($sURL) $oLinks = _IELinkGetCollection($oIE) $iNumLinks = @extended ConsoleWrite("Link Count: " & $iNumLinks & @CRLF) For $oLink In $oLinks If StringInStr($oLink.href, $sSearch) Then ConsoleWrite($oLink.href & @CRLF) EndIf Next
James Posted May 8, 2007 Posted May 8, 2007 Try looking at the source and looking for a string. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
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