fix: 上海立信会计金融学院 HTTPS (#6446)

This commit is contained in:
Laam Pui
2020-12-15 11:24:47 +00:00
committed by GitHub
parent 3f9bf01eb6
commit 83b959d704
+6
View File
@@ -7,6 +7,9 @@ module.exports = {
const response = await got({
method: 'get',
url,
https: {
rejectUnauthorized: false,
},
});
const $ = cheerio.load(response.data);
// 获取列表
@@ -40,6 +43,9 @@ module.exports = {
const detail_response = await got({
method: 'get',
url: href,
https: {
rejectUnauthorized: false,
},
});
const $ = cheerio.load(detail_response.data);
const title = $('title').text();