* Start URL of the electronic programme guide.
*/
private static final String START_URL = "http://epg.kml.kiss-technology.com/login_core.php";
* Start URL of the electronic programme guide.
*/
private static final String START_URL = "http://epg.kml.kiss-technology.com/login_core.php";
public static void main(String[] aArgs) throws Exception {
String crawlerConfig = new File(aArgs[0]).getCanonicalPath();
String programConfig = new File(aArgs[1]).getCanonicalPath();
public static void main(String[] aArgs) throws Exception {
String crawlerConfig = new File(aArgs[0]).getCanonicalPath();
String programConfig = new File(aArgs[1]).getCanonicalPath();
- new KissCrawler(START_URL, crawlerConfig, programConfig);
+ new KissCrawler(START_URL, SOCKET_TIMEOUT, crawlerConfig, programConfig);
*/
public KissCrawler(String aCrawlerConfig,
String aProgramConfig) throws IOException, NotificationException {
*/
public KissCrawler(String aCrawlerConfig,
String aProgramConfig) throws IOException, NotificationException {
- this(START_URL, aCrawlerConfig, aProgramConfig);
+ this(START_URL, SOCKET_TIMEOUT, aCrawlerConfig, aProgramConfig);
- public KissCrawler(String aStartUrl, String aCrawlerConfig,
+ public KissCrawler(String aStartUrl, int aSocketTimeout, String aCrawlerConfig,
String aProgramConfig) throws IOException, NotificationException {
_pattern = Pattern.compile(TIME_REGEX);
String aProgramConfig) throws IOException, NotificationException {
_pattern = Pattern.compile(TIME_REGEX);
try {
HttpClient client = new HttpClient();
// client.getHostConfiguration().setProxy("127.0.0.1", 3128);
try {
HttpClient client = new HttpClient();
// client.getHostConfiguration().setProxy("127.0.0.1", 3128);