diff --git a/components/app/info/copyright.vue b/components/app/info/copyright.vue index 0be643f..5316080 100644 --- a/components/app/info/copyright.vue +++ b/components/app/info/copyright.vue @@ -2,7 +2,7 @@ const { t } = useI18n(); diff --git a/server/api/publishers/lt/[slug].ts b/server/api/publishers/lt/[slug].ts new file mode 100644 index 0000000..8a11d4f --- /dev/null +++ b/server/api/publishers/lt/[slug].ts @@ -0,0 +1,9 @@ +import * as cheerio from "cheerio"; + +export default defineEventHandler(async (event) => { + const slug = getRouterParam(event, "slug"); + const buildUrl = "https://today.line.me/tw/v3/publisher/" + slug; + try { + const req = await fetch(buildUrl) + } catch (e) {} +}) \ No newline at end of file diff --git a/server/scrape/line_today.ts b/server/scrape/line_today.ts index c5169cd..81e9ee4 100644 --- a/server/scrape/line_today.ts +++ b/server/scrape/line_today.ts @@ -89,6 +89,8 @@ async function lineToday(slug: string) { if (publishMatch) { publishedAt = findTime(publishMatch[1].trim()); } + const getAuthorUrl = html("entityPublishInfo-avatarLin").html(); + console.log(getAuthorUrl); return { title: title, paragraph: paragraph,