fix(route): douyin hashtag author (#10111)

This commit is contained in:
Tony
2022-07-04 22:23:17 +08:00
committed by GitHub
parent fc648b5471
commit 97c4b1c638
+2
View File
@@ -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,
};
});