add - 阿里去掉汉字推送
This commit is contained in:
@@ -448,6 +448,9 @@ public class PushAgent extends Spider {
|
||||
public String detailContent(List<String> list) {
|
||||
try {
|
||||
String url = list.get(0);
|
||||
if (url.contains("aliyundrive")&&url.contains("\n")) {
|
||||
url = url.replace("\n","").replaceAll(".*(https://www.aliyundrive.com/s/\\w+).*", "$1");
|
||||
}
|
||||
Pattern pattern = Folder;
|
||||
Pattern pattern2 = AliPLink;
|
||||
Matcher matcher2 = pattern2.matcher(url);
|
||||
|
||||
@@ -244,7 +244,10 @@ public class XBiubiu extends Spider {
|
||||
if (!getRuleVal("juqingqian").isEmpty() && !getRuleVal("juqinghou").isEmpty()) {
|
||||
try {
|
||||
desc = subContent(html, getRuleVal("juqingqian"), getRuleVal("juqinghou")).get(0);
|
||||
if(desc!=null)desc = desc.replaceAll(".*>(.*)", "$1");
|
||||
if(desc!=null){
|
||||
desc = desc.replace("\t", "");
|
||||
desc = desc.replaceAll("\\.*>(.*)", "$1");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
SpiderDebug.log(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user