fix: the problem in Issue #5137 解决上海理工大学教务网列表为空的问题 (#5139)

This commit is contained in:
P. Tan 2020-07-07 17:37:05 +08:00 committed by GitHub
parent 8f8bc47ea0
commit 9fb68e77f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ module.exports = async (ctx) => {
$('td[width="30px"]').remove();
$('td[width="195"]').remove();
// ## 获取列表
const list = $('.main_shadow > table > tbody > tr > td').get();
const list = $('#container-2 > .inner .post1 > .con > ul > li ').get();
// ## 定义输出的item
const out = await Promise.all(
// ### 遍历列表,筛选出自己想要的内容
@ -37,7 +37,7 @@ module.exports = async (ctx) => {
url: singleUrl,
});
const $ = cheerio.load(detail_response.data);
const detail_content = $('.wp_articlecontent > .Article_Content').html();
const detail_content = $('.wp_articlecontent').html();
// ### 设置 RSS feed item
const single = {
title: title,