|
@@ -86,7 +86,7 @@ public class CollegeData {
|
|
// int count = 0, total = 5000, page = 79;
|
|
// int count = 0, total = 5000, page = 79;
|
|
Integer ProvinceId=18;
|
|
Integer ProvinceId=18;
|
|
String Location="湖南";//湖北的1-5页之前需要修正ProvinceId,表示学校所在省份
|
|
String Location="湖南";//湖北的1-5页之前需要修正ProvinceId,表示学校所在省份
|
|
- int count = 0, total = 5000, page = 183;
|
|
|
|
|
|
+ int count = 0, total = 5000, page = 1;
|
|
JSONObject res=new JSONObject();
|
|
JSONObject res=new JSONObject();
|
|
do {
|
|
do {
|
|
try {
|
|
try {
|
|
@@ -115,7 +115,7 @@ public class CollegeData {
|
|
List<Integer> colledgeIds = Arrays.asList(
|
|
List<Integer> colledgeIds = Arrays.asList(
|
|
2478,2479,2480,2462,2463,2464,2465,2791,2792,2793,2794,2796);
|
|
2478,2479,2480,2462,2463,2464,2465,2791,2792,2793,2794,2796);
|
|
if(colledgeIds.contains(collegeId)){
|
|
if(colledgeIds.contains(collegeId)){
|
|
- continue;
|
|
|
|
|
|
+// continue;
|
|
}
|
|
}
|
|
if(processColledgeCount>5){
|
|
if(processColledgeCount>5){
|
|
//超过5个学校换个账号
|
|
//超过5个学校换个账号
|
|
@@ -145,11 +145,11 @@ public class CollegeData {
|
|
/**
|
|
/**
|
|
* 专业录取数据
|
|
* 专业录取数据
|
|
*/
|
|
*/
|
|
- byCollege(collegeId,liberalScience,2,Location,ProvinceId);
|
|
|
|
|
|
+// byCollege(collegeId,liberalScience,2,Location,ProvinceId);
|
|
/**
|
|
/**
|
|
* 招生计划数据
|
|
* 招生计划数据
|
|
*/
|
|
*/
|
|
-// byCollege(collegeId,liberalScience,3,Location,ProvinceId);
|
|
|
|
|
|
+ byCollege(collegeId,liberalScience,3,Location,ProvinceId);
|
|
}
|
|
}
|
|
processColledgeCount++;
|
|
processColledgeCount++;
|
|
|
|
|
|
@@ -324,8 +324,8 @@ public class CollegeData {
|
|
// dataJSONObject.put("id",yearLast);
|
|
// dataJSONObject.put("id",yearLast);
|
|
// dataJSONObject.put("year",yearLast);
|
|
// dataJSONObject.put("year",yearLast);
|
|
// Integer year = dataJSONObject.getInteger("year");
|
|
// Integer year = dataJSONObject.getInteger("year");
|
|
-// List<Integer> yearList = Arrays.asList(2021,2020,2019);
|
|
|
|
- List<Integer> yearList = Arrays.asList(2021);
|
|
|
|
|
|
+// List<Integer> yearList = Arrays.asList(2022,2021,2020,2019);
|
|
|
|
+ List<Integer> yearList = Arrays.asList(2022);
|
|
for(int year:yearList){
|
|
for(int year:yearList){
|
|
sb = new StringBuilder(host);
|
|
sb = new StringBuilder(host);
|
|
if(queryType==2){
|
|
if(queryType==2){
|