fix(route): douyin hashtag author (#10111)
This commit is contained in:
@@ -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,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user