fix: /cfd/gbp_div DOM 更新 (#4888)
This commit is contained in:
parent
05d574b572
commit
48865c439e
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue