Main.java 565 Bytes
package com.yoho.search.spider.service;

import org.htmlcleaner.XPatherException;

public class Main {
	public static final int THREAD_NUM = 4;
	
	public static void main(String[] args) throws XPatherException {
//		WebCrawler[] webCrawlers = new WebCrawler[THREAD_NUM];
//
//		for(int i = 0 ; i < THREAD_NUM ; i++){
//			webCrawlers[i] = new WebCrawler();
//			webCrawlers[i].setThreadId(i);
//			webCrawlers[i].start();
//		}

		String url = "http://baike.baidu.com/item/vans";
		BaikeBO baikeBO = HttpRequestService.get(url);
		System.out.println(baikeBO);
	}
}