31323334353637383940
FileWriter logfile = new FileWriter("urls.txt"); URLLogger log = new URLLogger(logfile); robby.setDocManager(log); robby.run(); logfile.close(); } }
7071727374757677787980
// download only the first 5 documents DownloadStopper stopit = new DownloadStopper(5,robby); robby.setWebRobotCallback(stopit); robby.run(); } public static void main(String[] args) throws Exception
158159160161162163164165166
robby.setStartURL(u); robby.setDocManager(docStore); robby.setHttpToolCallback(statusInfo); robby.run(); } }