fix(xiaohongshu): guid
This commit is contained in:
@@ -51,6 +51,7 @@ async function handler(ctx) {
|
||||
n.map(({ id, noteCard }) => ({
|
||||
title: noteCard.displayTitle,
|
||||
link: `${url}/${noteCard.noteId || id}`,
|
||||
guid: noteCard.noteId || id || noteCard.cover?.infoList?.[0]?.url || noteCard.displayTitle,
|
||||
description: `<img src ="${noteCard.cover.infoList.pop().url}"><br>${noteCard.displayTitle}`,
|
||||
author: noteCard.user.nickname,
|
||||
upvotes: noteCard.interactInfo.likedCount,
|
||||
|
||||
@@ -7,7 +7,9 @@ const getUser = (url, cache) =>
|
||||
cache.tryGet(
|
||||
url,
|
||||
async () => {
|
||||
const browser = await puppeteer();
|
||||
const browser = await puppeteer({
|
||||
stealth: true,
|
||||
});
|
||||
try {
|
||||
const page = await browser.newPage();
|
||||
await page.setRequestInterception(true);
|
||||
|
||||
Reference in New Issue
Block a user