package com.newvideo.pptv;
|
|
import java.util.List;
|
|
import com.newvideo.util.HttpUtil;
|
|
public class PPTVApi {
|
public static String PPTV_ALL_MOVIE = "http://spider.api.pptv.com/open/yeshi/sitemap-yeshi-movie-all-index.xml";
|
public static String PPTV_ALL_TV = "http://spider.api.pptv.com/open/yeshi/sitemap-yeshi-tv-all-index.xml";
|
public static String PPTV_ALL_CARTON = "http://spider.api.pptv.com/open/yeshi/sitemap-yeshi-cartoon-all-index.xml";
|
public static String PPTV_ALL_SHOW = "http://spider.api.pptv.com/open/yeshi/sitemap-yeshi-show-all-index.xml";
|
public static String PPTV_ALL_SHORTVIDEO = "http://spider.api.pptv.com/open/yeshi/sitemap-yeshi-shortvideo-all-index.xml";
|
|
public static String PPTV_UPDATE_MOVIE = "http://spider.api.pptv.com/open/yeshi/sitemap-yeshi-movie-recent-index.xml";
|
public static String PPTV_UPDATE_TV = "http://spider.api.pptv.com/open/yeshi/sitemap-yeshi-tv-recent-index.xml";
|
public static String PPTV_UPDATE_CARTON = "http://spider.api.pptv.com/open/yeshi/sitemap-yeshi-cartoon-recent-index.xml";
|
public static String PPTV_UPDATE_SHOW = "http://spider.api.pptv.com/open/yeshi/sitemap-yeshi-show-recent-index.xml";
|
public static String PPTV_UPDATE_SHORTVIDEO = "http://spider.api.pptv.com/open/yeshi/sitemap-yeshi-shortvideo-recent-index.xml";
|
|
public static void getUpdateList() {
|
String result = HttpUtil.get("http://spider.api.pptv.com/open/yeshi/yeshi-tv-all-1.xml");
|
PPTVDataParseUtil.parseCartoonListVideo(result);
|
}
|
|
// 获取分页链接
|
public static List<String> getPageUrl(String rootUrl) {
|
String result = HttpUtil.get(rootUrl);
|
return PPTVDataParseUtil.parsePageUrl(result);
|
}
|
|
}
|