Wiki Links Sample Macro

DECLARE @i
// Start at the 13th link
SET @i 13
GO http://en.wikipedia.org/wiki/Special:WhatLinksHere/ASDF
// The following line checks if the link at index @i exists on the page. The first link on the page would be a;0
Label Next
IF a;@i
BEGIN
//The following line clicks the link at index @i
CLICK a;@i
JUMP Continue
END
Jump End
Label Continue
INCREMENT @i

// The following line saves the current page to hard disk
SAVE c:\scrape\test_#CURRENTTIMESTAMP.htm

// The following line goes back to the page with the links
GO Javascript:history.go(-1)
Jump Next

Label End