Merge branch 'main' of https://github.com/FongMi/CatVodSpider
This commit is contained in:
commit
d2afbc1d78
|
|
@ -31,6 +31,12 @@ public class PanSou extends Ali {
|
|||
return headers;
|
||||
}
|
||||
|
||||
private Map<String, String> getHeader() {
|
||||
HashMap<String, String> header = new HashMap<>();
|
||||
header.put("User-Agent", Utils.CHROME);
|
||||
return header;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String detailContent(List<String> ids) throws Exception {
|
||||
if (pattern.matcher(ids.get(0)).find()) return super.detailContent(ids);
|
||||
|
|
@ -51,7 +57,7 @@ public class PanSou extends Ali {
|
|||
|
||||
private String searchContent(String key, String pg) {
|
||||
String url = siteUrl + "/search?k=" + URLEncoder.encode(key) + "&page=" + pg + "&s=0&t=-1";
|
||||
Elements items = Jsoup.parse(OkHttp.string(url)).select("van-row > a");
|
||||
Elements items = Jsoup.parse(OkHttp.string(url, getHeader())).select("van-row > a");
|
||||
List<Vod> list = new ArrayList<>();
|
||||
for (Element item : items) {
|
||||
String title = item.selectFirst("template").text().trim();
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ public class Zhaozy extends Ali {
|
|||
|
||||
@Override
|
||||
public String searchContent(String key, boolean quick) throws Exception {
|
||||
String url = siteUrl + "sok?filename=" + URLEncoder.encode(key);
|
||||
String url = siteUrl + "so?filename=" + URLEncoder.encode(key);
|
||||
Document doc = Jsoup.parse(OkHttp.string(url, getHeader()));
|
||||
List<Vod> list = new ArrayList<>();
|
||||
for (Element element : doc.select("div.li_con div.news_text")) {
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
8aa91b90065d8517ba322655bdd2127b
|
||||
2ea1762a8c802608c2222c7051709afc
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;8aa91b90065d8517ba322655bdd2127b",
|
||||
"spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;2ea1762a8c802608c2222c7051709afc",
|
||||
"wallpaper": "https://gao.chuqiuyu.tk",
|
||||
"sites": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;8aa91b90065d8517ba322655bdd2127b",
|
||||
"spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;2ea1762a8c802608c2222c7051709afc",
|
||||
"wallpaper": "http://饭太硬.top/深色壁纸/api.php",
|
||||
"sites": [
|
||||
{
|
||||
|
|
@ -382,9 +382,19 @@
|
|||
"8.1748",
|
||||
"10.0099",
|
||||
"10.3333",
|
||||
"10.8565",
|
||||
"16.0599"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "索尼",
|
||||
"hosts": [
|
||||
"suonizy"
|
||||
],
|
||||
"regex": [
|
||||
"15.1666"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "暴風",
|
||||
"hosts": [
|
||||
|
|
|
|||
Loading…
Reference in New Issue