(no commit message)
[utils] / crawler / kiss / src / org / wamblee / crawler / kiss / main / KissCrawler.java
index 0c01a9bcc3e9a712df3a3553a54c265b1e4b7cc0..735593109c20992c77c09106ec6f9ac38be02ed6 100644 (file)
@@ -62,16 +62,6 @@ public class KissCrawler {
      */
     private static final String START_URL = "http://epg.kml.kiss-technology.com/login_core.php";
 
-    /**
-     * Crawler configuration file.
-     */
-    private static final String CRAWLER_CONFIG = "config.xml";
-
-    /**
-     * Configuration file describing interesting programs.
-     */
-    private static final String PROGRAM_CONFIG = "programs.xml";
-
     /**
      * Regular expression for matching time interval strings in the retrieved
      * pages.
@@ -92,7 +82,9 @@ public class KissCrawler {
      *             In case of problems.
      */
     public static void main(String[] aArgs) throws Exception {
-        new KissCrawler(START_URL, CRAWLER_CONFIG, PROGRAM_CONFIG);
+        String crawlerConfig = new File(aArgs[0]).getCanonicalPath(); 
+        String programConfig = new File(aArgs[1]).getCanonicalPath(); 
+        new KissCrawler(START_URL, crawlerConfig, programConfig);
     }
 
     /**