Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webmagic
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
沈俊林
webmagic
Commits
0a902b44
Commit
0a902b44
authored
Aug 12, 2013
by
yihua.huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs
parent
b3308eb0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
README.md
README.md
+1
-1
Request.java
...gic-core/src/main/java/us/codecraft/webmagic/Request.java
+7
-0
No files found.
README.md
View file @
0a902b44
...
...
@@ -9,7 +9,7 @@ webmagic
webmagic的主要特色:
*
完全模块化的设计,强大的可扩展性。
*
核心简单但是涵盖爬虫的全部流程,是学习爬虫入门的好材料。
*
核心简单但是涵盖爬虫的全部流程,
灵活而强大,也
是学习爬虫入门的好材料。
*
提供丰富的抽取页面API。
*
无配置,但是可通过POJO+注解形式实现一个爬虫。
*
支持多线程。
...
...
webmagic-core/src/main/java/us/codecraft/webmagic/Request.java
View file @
0a902b44
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment