git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[utils]
/
crawler
/
kiss
/
src
/
org
/
wamblee
/
crawler
/
kiss
/
main
/
KissCrawler.java
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 0c01a9bcc3e9a712df3a3553a54c265b1e4b7cc0..735593109c20992c77c09106ec6f9ac38be02ed6 100644
(file)
--- 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";
*/
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.
/**
* 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 {
* 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);
}
/**
}
/**