Commit 0a902b44 authored by yihua.huang's avatar yihua.huang

update docs

parent b3308eb0
......@@ -9,7 +9,7 @@ webmagic
webmagic的主要特色:
* 完全模块化的设计,强大的可扩展性。
* 核心简单但是涵盖爬虫的全部流程,是学习爬虫入门的好材料。
* 核心简单但是涵盖爬虫的全部流程,灵活而强大,也是学习爬虫入门的好材料。
* 提供丰富的抽取页面API。
* 无配置,但是可通过POJO+注解形式实现一个爬虫。
* 支持多线程。
......
......@@ -56,6 +56,13 @@ public class Request implements Serializable {
return priority;
}
/**
* 设置优先级,用于URL队列排序<br>
* 需扩展Scheduler<br>
* 目前还没有对应支持优先级的Scheduler实现 =。= <br>
* @param priority 优先级,越大则越靠前
* @return this
*/
public Request setPriority(double priority) {
this.priority = priority;
return this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment