fix: /cfd/gbp_div DOM 更新 (#4888)

This commit is contained in:
Henry Wang 2020-06-01 05:18:37 +01:00 committed by GitHub
parent 05d574b572
commit 48865c439e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ module.exports = async (ctx) => {
const $ = cheerio.load(response.data);
const title = $('.news-table-wrapper')[0].prev.prev.children[2].data.replace('*', '');
const title = $($('.news-table-wrapper')[0]).prev().text().replace('*', '');
const pubDate = dateParser($('meta[itemprop="datePublished"]').attr('content'), 'YYYY-MM-DD-HH:mm');