Commit e7657cca authored by yihua.huang's avatar yihua.huang

update some code for annotation

parent 122cebfa
...@@ -354,6 +354,10 @@ webmagic-extension包括注解模块。为什么会有注解方式? ...@@ -354,6 +354,10 @@ webmagic-extension包括注解模块。为什么会有注解方式?
@ExtractBy(value = "//div[@class='BlogTags']/a/text()", multi = true) @ExtractBy(value = "//div[@class='BlogTags']/a/text()", multi = true)
private List<String> tags; private List<String> tags;
@Formatter("yyyy-MM-dd HH:mm")
@ExtractBy("//div[@class='BlogStat']/regex('\\d+-\\d+-\\d+\\s+\\d+:\\d+')")
private Date date;
public static void main(String[] args) { public static void main(String[] args) {
OOSpider.create( OOSpider.create(
......
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