From 97c4b1c6389becebed4256d0dc0416dfc2042632 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 4 Jul 2022 15:23:17 +0100 Subject: [PATCH] fix(route): douyin hashtag author (#10111) --- lib/v2/douyin/hashtag.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/v2/douyin/hashtag.js b/lib/v2/douyin/hashtag.js index 576a8c08c..1ca45c0e3 100644 --- a/lib/v2/douyin/hashtag.js +++ b/lib/v2/douyin/hashtag.js @@ -29,6 +29,7 @@ module.exports = async (ctx) => { await page.goto(tagUrl, { waitUntil: 'domcontentloaded', }); + await page.waitForSelector('#RENDER_DATA'); const html = await page.evaluate(() => document.documentElement.innerHTML); await browser.close(); @@ -78,6 +79,7 @@ module.exports = async (ctx) => { link: `https://www.douyin.com/video/${post.awemeId}`, pubDate: parseDate(post.createTime * 1000), category: post.textExtra.map((extra) => extra.hashtagName), + author: post.authorInfo.nickname, }; });