mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Do text-center in copyright in about && add testing data.
This commit is contained in:
parent
046f5ae446
commit
ce1d150c11
4 changed files with 13 additions and 2 deletions
9
server/api/publishers/lt/[slug].ts
Normal file
9
server/api/publishers/lt/[slug].ts
Normal file
|
@ -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) {}
|
||||
})
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue