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

This commit is contained in:
Henry Wang
2020-06-01 12:18:37 +08:00
committed by GitHub
parent 05d574b572
commit 48865c439e
+1 -1
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');