mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix(route): xiaohongshu private collection (#12366)
This commit is contained in:
@@ -31,7 +31,10 @@ const getUser = (url, cache) =>
|
||||
await page.goto(url);
|
||||
await page.waitForSelector('.feeds-container:nth-child(1) .note-item');
|
||||
await page.click('div.reds-tab-item:nth-child(2)');
|
||||
await page.waitForSelector('.feeds-container:nth-child(2) .note-item');
|
||||
const privateCollection = await page.evaluate(() => document.querySelector('div.reds-tab-item:nth-child(2) .reds-icon'));
|
||||
if (!privateCollection) {
|
||||
await page.waitForSelector('.feeds-container:nth-child(2) .note-item');
|
||||
}
|
||||
return { otherInfo, user_posted, collect };
|
||||
} finally {
|
||||
browser.close();
|
||||
|
||||
Reference in New Issue
Block a user