mirror of
https://github.com/bizhangjie/CatVodSpider.git
synced 2026-11-04 18:52:12 +00:00
'更新可用状态'
This commit is contained in:
1 parent
12285ac9c1
commit
014de4f40c
5 files changed
+8
-7
No files matched your search
@@ -62,7 +62,7 @@ public class MainActivity extends Activity {
|
|||||||
private void initSpider() {
|
private void initSpider() {
|
||||||
try {
|
try {
|
||||||
Init.init(getApplicationContext());
|
Init.init(getApplicationContext());
|
||||||
spider = new Ikanbot();
|
spider = new MiMei();
|
||||||
spider.init(this, "");
|
spider.init(this, "");
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@@ -85,9 +85,10 @@ public class MainActivity extends Activity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void categoryContent() {
|
public void categoryContent(){
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Logger.t("categoryContent").d(spider.categoryContent("/index-movie", "1", true, new HashMap<>()));
|
Logger.t("categoryContent").d(spider.categoryContent("/suoyoushipin/zhibo", "1", true, new HashMap<>()));
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -174,8 +174,8 @@ public class CaoLiu extends Spider {
|
|||||||
// 只有图片模版
|
// 只有图片模版
|
||||||
if (tid == "57") {
|
if (tid == "57") {
|
||||||
List<Vod> list = parseHtml(doc);
|
List<Vod> list = parseHtml(doc);
|
||||||
Integer total = (Integer.parseInt(pg) + 1) * 100;
|
Integer total = (Integer.parseInt(pg) + 1) * 20;
|
||||||
return Result.string(Integer.parseInt(pg), Integer.parseInt(pg) + 1, 100, total, list);
|
return Result.string(Integer.parseInt(pg), Integer.parseInt(pg) + 1, 20, total, list);
|
||||||
}
|
}
|
||||||
List<Vod> list = new ArrayList<>();
|
List<Vod> list = new ArrayList<>();
|
||||||
// 图文结合模版
|
// 图文结合模版
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ public class MiMei extends Spider {
|
|||||||
Document doc = Jsoup.parse(OkHttp.string(target, getHeaders()));
|
Document doc = Jsoup.parse(OkHttp.string(target, getHeaders()));
|
||||||
|
|
||||||
List<Vod> list;
|
List<Vod> list;
|
||||||
if (tid == "zhibo"){
|
if (tid == "/suoyoushipin/zhibo"){
|
||||||
list = parseHtmlZB(doc);
|
list = parseHtmlZB(doc);
|
||||||
}else {
|
}else {
|
||||||
list = parseHtml(doc);
|
list = parseHtml(doc);
|
||||||
|
|||||||
Binary file not shown.
@@ -1 +1 @@
|
|||||||
cbe757c3fefec6418036af6e63f63c96
|
786e80e823767f667587b072bd401d35
|
||||||
Reference in new issue
Block a user