1.
方法 | 说明 | 示例 |
---|
links() | 选择所有链接 | html.links() |
public Selectable links() {
return xpath("//a/@href");
}
2.学习链式调用思想
3.WebMagic的默认Downloader基于HttpClient
1.
方法 | 说明 | 示例 |
---|
links() | 选择所有链接 | html.links() |
public Selectable links() {
return xpath("//a/@href");
}
2.学习链式调用思想
3.WebMagic的默认Downloader基于HttpClient