只是玩java試圖學習它等 這是我的代碼到目前爲止,使用HtmlUnit。 package hsspider;
import com.gargoylesoftware.htmlunit.WebClient;
/**
* @author
*/
public class Main {
/**
* @param args the command line argumen
我試圖讓所有的主要環節,然後點擊它們和導航頁面: WebClient client = new WebClient();
HtmlPage page = client.getPage(url);
// Get all links with a href of www.example.com/pages/1_
List<HtmlAnchor> links = (L