You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1007 B
21 lines
1007 B
package de.anomic.crawler;
|
|
|
|
import junit.framework.TestCase;
|
|
//import de.anomic.yacy.yacyURL;
|
|
|
|
public class robotsParserTest extends TestCase {
|
|
public void testDownload() throws Exception {
|
|
/*yacyURL robotsURL = new yacyURL("http://www.bigfoot2002.de.vu/robots.txt");
|
|
Object[] result = robotsParser.downloadRobotsTxt(robotsURL,5,null);
|
|
|
|
if (result != null) {
|
|
System.out.println("Access restricted: " + result[robotsParser.DOWNLOAD_ACCESS_RESTRICTED]);
|
|
System.out.println("ETag: " + result[robotsParser.DOWNLOAD_ETAG]);
|
|
System.out.println("Mod-Date: " + result[robotsParser.DOWNLOAD_MODDATE]);
|
|
System.out.println("-------------------------------- Robots.txt START: -------------------------------");
|
|
System.out.println(UTF8.String((byte[])result[robotsParser.DOWNLOAD_ROBOTS_TXT]));
|
|
System.out.println("-------------------------------- Robots.txt END: ---------------------------------");
|
|
}*/
|
|
}
|
|
}
|