From de4b9e7cc70d0eba1c9f6e392fe50aa01c870b2b Mon Sep 17 00:00:00 2001 From: erik Date: Tue, 18 Apr 2006 18:30:57 +0000 Subject: [PATCH] --- build/trailer.xml | 6 ++++ crawler/kiss/build.xml | 31 +++++++++++++++++++ crawler/kiss/conf/kiss/programs.xml | 11 +++++++ crawler/kiss/docs/content/xdocs/index.xml | 2 +- .../crawler/kiss/main/KissCrawler.java | 14 ++------- 5 files changed, 52 insertions(+), 12 deletions(-) diff --git a/build/trailer.xml b/build/trailer.xml index f5b63efc..92896545 100644 --- a/build/trailer.xml +++ b/build/trailer.xml @@ -226,6 +226,12 @@ + + + + + + diff --git a/crawler/kiss/build.xml b/crawler/kiss/build.xml index 846fd7c1..234ed570 100644 --- a/crawler/kiss/build.xml +++ b/crawler/kiss/build.xml @@ -25,6 +25,37 @@ mentioned below again --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + &trailer; diff --git a/crawler/kiss/conf/kiss/programs.xml b/crawler/kiss/conf/kiss/programs.xml index 6f105b82..8c8850d7 100644 --- a/crawler/kiss/conf/kiss/programs.xml +++ b/crawler/kiss/conf/kiss/programs.xml @@ -69,12 +69,23 @@ star trek + + 9 + dr.*who + + + + 9 + the.*x.*files + + 9 buffy.*vampire.*slayer + notify de.*wereld.*draait.*door diff --git a/crawler/kiss/docs/content/xdocs/index.xml b/crawler/kiss/docs/content/xdocs/index.xml index 8886d717..4afa8fd5 100644 --- a/crawler/kiss/docs/content/xdocs/index.xml +++ b/crawler/kiss/docs/content/xdocs/index.xml @@ -18,7 +18,7 @@
- Welcome to the KiSS crawler + Automatic recording for KiSS hard disk recorders
diff --git a/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java b/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java index 0c01a9bc..73559310 100644 --- a/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java +++ b/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java @@ -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); } /** -- 2.31.1