优化章节

main
tamguo 7 years ago
parent b81332f343
commit 33d18b954a

@ -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;

@ -31,6 +31,10 @@ public class ChapterEntity extends SuperEntity<ChapterEntity> implements Seriali
private Boolean treeLeaf;
private Integer treeLevel;
private String seoTitle;
private String seoKeywords;
private String seoDescription;
@TableField(exist=false)
private List<ChapterEntity> childChapterList;
@ -136,4 +140,28 @@ public class ChapterEntity extends SuperEntity<ChapterEntity> 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;
}
}

@ -2,9 +2,9 @@
<html lang="Zh-hans" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title th:text="${'探果网_' + subject.name +'|' + course.name +'|'+ chapter.name}"></title>
<meta name="keywords" th:content="${chapter.name}"/>
<meta name="description" th:content="${chapter.name}"/>
<title th:text="${chapter.seoTitle}"></title>
<meta name="keywords" th:content="${chapter.seoKeywords}"/>
<meta name="description" th:content="${chapter.seoDescription}"/>
<meta name="author" content="Tamguo Team" />
<meta name="copyright" content="Tamguo" />
<link rel="stylesheet" type="text/css" th:href="${domainName + 'css/main.css'}"></link>

Loading…
Cancel
Save