|
@@ -77,6 +77,7 @@ public class KuaishouCrawlerServiceImpl implements IKuaishouCrawlerService {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public String getMusicTypeList(String llsid){
|
|
public String getMusicTypeList(String llsid){
|
|
// IpPool ipPool = iIpPoolService.getAvaliableIp();
|
|
// IpPool ipPool = iIpPoolService.getAvaliableIp();
|
|
String token = "a7805c554d6a453ea3350b629b28fed9-1144829703";
|
|
String token = "a7805c554d6a453ea3350b629b28fed9-1144829703";
|
|
@@ -86,9 +87,14 @@ public class KuaishouCrawlerServiceImpl implements IKuaishouCrawlerService {
|
|
String url = "http://apihb6.gifshow.com";
|
|
String url = "http://apihb6.gifshow.com";
|
|
String path = "/rest/n/music/channel/music";
|
|
String path = "/rest/n/music/channel/music";
|
|
CrawlerLog crawlerLog = KuaishouUtil.kuaishouAppDataFeatch(url, path, staticStr, paramStr, headerStr, token, null);
|
|
CrawlerLog crawlerLog = KuaishouUtil.kuaishouAppDataFeatch(url, path, staticStr, paramStr, headerStr, token, null);
|
|
- return crawlerLog.getRequestBody();
|
|
|
|
|
|
+ return crawlerLog.getResponseBody();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public static void main(String[] args) {
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public String musicSearchSuggest(String keyword) throws UnsupportedEncodingException {
|
|
public String musicSearchSuggest(String keyword) throws UnsupportedEncodingException {
|
|
// IpPool ipPool = iIpPoolService.getAvaliableIp();
|
|
// IpPool ipPool = iIpPoolService.getAvaliableIp();
|
|
String token = "a7805c554d6a453ea3350b629b28fed9-1144829703";
|
|
String token = "a7805c554d6a453ea3350b629b28fed9-1144829703";
|
|
@@ -98,9 +104,10 @@ public class KuaishouCrawlerServiceImpl implements IKuaishouCrawlerService {
|
|
String url = "http://apihb6.gifshow.com";
|
|
String url = "http://apihb6.gifshow.com";
|
|
String path = "/rest/n/music/search/suggest";
|
|
String path = "/rest/n/music/search/suggest";
|
|
CrawlerLog crawlerLog = KuaishouUtil.kuaishouAppDataFeatch(url, path, staticStr, paramStr, headerStr, token, null);
|
|
CrawlerLog crawlerLog = KuaishouUtil.kuaishouAppDataFeatch(url, path, staticStr, paramStr, headerStr, token, null);
|
|
- return crawlerLog.getRequestBody();
|
|
|
|
|
|
+ return crawlerLog.getResponseBody();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
public String musicSearchList(String keyword) throws UnsupportedEncodingException {
|
|
public String musicSearchList(String keyword) throws UnsupportedEncodingException {
|
|
// IpPool ipPool = iIpPoolService.getAvaliableIp();
|
|
// IpPool ipPool = iIpPoolService.getAvaliableIp();
|
|
String token = "a7805c554d6a453ea3350b629b28fed9-1144829703";
|
|
String token = "a7805c554d6a453ea3350b629b28fed9-1144829703";
|
|
@@ -110,10 +117,11 @@ public class KuaishouCrawlerServiceImpl implements IKuaishouCrawlerService {
|
|
String url = "http://apihb6.gifshow.com";
|
|
String url = "http://apihb6.gifshow.com";
|
|
String path = "/rest/n/music/search/v3";
|
|
String path = "/rest/n/music/search/v3";
|
|
CrawlerLog crawlerLog = KuaishouUtil.kuaishouAppDataFeatch(url, path, staticStr, paramStr, headerStr, token, null);
|
|
CrawlerLog crawlerLog = KuaishouUtil.kuaishouAppDataFeatch(url, path, staticStr, paramStr, headerStr, token, null);
|
|
- return crawlerLog.getRequestBody();
|
|
|
|
|
|
+ return crawlerLog.getResponseBody();
|
|
}
|
|
}
|
|
|
|
|
|
- public String getMusicList(String channel,String llsid){
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public String getMusicList(String channel, String llsid){
|
|
// IpPool ipPool = iIpPoolService.getAvaliableIp();
|
|
// IpPool ipPool = iIpPoolService.getAvaliableIp();
|
|
String token = "a7805c554d6a453ea3350b629b28fed9-1144829703";
|
|
String token = "a7805c554d6a453ea3350b629b28fed9-1144829703";
|
|
String staticStr = String.format("app=0&kpf=ANDROID_PHONE&ver=6.5&c=HUAWEI&mod=HUAWEI(VOG-AL10)&appver=6.5.5.9591&ftt=&isp=CUCC&kpn=KUAISHOU&lon=0&language=zh-cn&sys=ANDROID_9&max_memory=384&ud=1144829703&country_code=cn&pm_tag=&oc=HUAWEI&hotfix_ver=&did_gt=%s&iuid=&extId=4db221a192e4d1d713c5dafb204400a8&net=WIFI&did=ANDROID_07264410e70db2ca&lat=0", String.valueOf(System.currentTimeMillis()));
|
|
String staticStr = String.format("app=0&kpf=ANDROID_PHONE&ver=6.5&c=HUAWEI&mod=HUAWEI(VOG-AL10)&appver=6.5.5.9591&ftt=&isp=CUCC&kpn=KUAISHOU&lon=0&language=zh-cn&sys=ANDROID_9&max_memory=384&ud=1144829703&country_code=cn&pm_tag=&oc=HUAWEI&hotfix_ver=&did_gt=%s&iuid=&extId=4db221a192e4d1d713c5dafb204400a8&net=WIFI&did=ANDROID_07264410e70db2ca&lat=0", String.valueOf(System.currentTimeMillis()));
|
|
@@ -122,9 +130,10 @@ public class KuaishouCrawlerServiceImpl implements IKuaishouCrawlerService {
|
|
String url = "http://apihb6.gifshow.com";
|
|
String url = "http://apihb6.gifshow.com";
|
|
String path = "/rest/n/music/channel/music";
|
|
String path = "/rest/n/music/channel/music";
|
|
CrawlerLog crawlerLog = KuaishouUtil.kuaishouAppDataFeatch(url, path, staticStr, paramStr, headerStr, token, null);
|
|
CrawlerLog crawlerLog = KuaishouUtil.kuaishouAppDataFeatch(url, path, staticStr, paramStr, headerStr, token, null);
|
|
- return crawlerLog.getRequestBody();
|
|
|
|
|
|
+ return crawlerLog.getResponseBody();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public String getAdFeeds(){
|
|
public String getAdFeeds(){
|
|
IpPool ipPool = iIpPoolService.getAvaliableIp();
|
|
IpPool ipPool = iIpPoolService.getAvaliableIp();
|