From 33d18b954a5f6e69e76bdc3b610dd932e067fd43 Mon Sep 17 00:00:00 2001 From: tamguo Date: Sat, 25 Aug 2018 16:00:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AB=A0=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/java/com/tamguo/PaperCrawler.java | 10 +++---- .../modules/tiku/model/ChapterEntity.java | 28 +++++++++++++++++++ .../resources/templates/questionList.html | 6 ++-- 3 files changed, 36 insertions(+), 8 deletions(-) diff --git a/tamguo-crawler/src/test/java/com/tamguo/PaperCrawler.java b/tamguo-crawler/src/test/java/com/tamguo/PaperCrawler.java index 06361f0..e86854e 100644 --- a/tamguo-crawler/src/test/java/com/tamguo/PaperCrawler.java +++ b/tamguo-crawler/src/test/java/com/tamguo/PaperCrawler.java @@ -31,14 +31,14 @@ public class PaperCrawler { // 科目 private final String COURSE_ID = "likeshuxue"; // 110000 北京 | 310000 上海 | 500000 重庆 | 120100 天津 | 370000 山东 | 410000 河南 | 420000 湖北 | 320000 江苏 | 330000 浙江 - // 140000 山西 | 350000 福建 | 340000 安徽 - private final String AREA_ID = "340000"; + // 140000 山西 | 350000 福建 | 340000 安徽 | 220000 吉林 + private final String AREA_ID = "220000"; // 年份 - private final String YEAR = "2015"; + private final String YEAR = "2016"; // 真题试卷 类型(1:真题试卷,2:模拟试卷,3:押题预测,4:名校精品) - private final String PAPER_TYPE = "3"; + private final String PAPER_TYPE = "4"; // 开始采集的URL - private final String START_URL = "https://tiku.baidu.com/tikupc/paperlist/1bfd700abb68a98271fefa04-16-2-2015-852-1-download"; + private final String START_URL = "https://tiku.baidu.com/tikupc/paperlist/1bfd700abb68a98271fefa04-16-7-2016-909-1-download"; private RunData runData; diff --git a/tamguo-modules-core/src/main/java/com/tamguo/modules/tiku/model/ChapterEntity.java b/tamguo-modules-core/src/main/java/com/tamguo/modules/tiku/model/ChapterEntity.java index 476e409..db1499c 100644 --- a/tamguo-modules-core/src/main/java/com/tamguo/modules/tiku/model/ChapterEntity.java +++ b/tamguo-modules-core/src/main/java/com/tamguo/modules/tiku/model/ChapterEntity.java @@ -31,6 +31,10 @@ public class ChapterEntity extends SuperEntity implements Seriali private Boolean treeLeaf; private Integer treeLevel; + private String seoTitle; + private String seoKeywords; + private String seoDescription; + @TableField(exist=false) private List childChapterList; @@ -136,4 +140,28 @@ public class ChapterEntity extends SuperEntity implements Seriali this.bookId = bookId; } + public String getSeoTitle() { + return seoTitle; + } + + public void setSeoTitle(String seoTitle) { + this.seoTitle = seoTitle; + } + + public String getSeoKeywords() { + return seoKeywords; + } + + public void setSeoKeywords(String seoKeywords) { + this.seoKeywords = seoKeywords; + } + + public String getSeoDescription() { + return seoDescription; + } + + public void setSeoDescription(String seoDescription) { + this.seoDescription = seoDescription; + } + } \ No newline at end of file diff --git a/tamguo-tms/src/main/resources/templates/questionList.html b/tamguo-tms/src/main/resources/templates/questionList.html index a340913..d1dacc5 100644 --- a/tamguo-tms/src/main/resources/templates/questionList.html +++ b/tamguo-tms/src/main/resources/templates/questionList.html @@ -2,9 +2,9 @@ - - - + + +