Web Scraper and Web Macros FAQs

// 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
//The following line clicks the link at index @i
CLICK a;@i
JUMP Continue
Jump End
Label Continue

// 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
Create a Page | Administration | File Management | Login/Logout | Language Selection | Your Profile |Create Account