diff --git a/lib/routes/sciencedirect/call-for-paper.ts b/lib/routes/sciencedirect/call-for-paper.ts index 7fbe5392f5b351..2045d7014264bf 100644 --- a/lib/routes/sciencedirect/call-for-paper.ts +++ b/lib/routes/sciencedirect/call-for-paper.ts @@ -1,11 +1,18 @@ +import { Route } from '@/types'; +import { getCurrentPath } from '@/utils/helpers'; import got from '@/utils/got'; import { load } from 'cheerio'; +import { art } from '@/utils/render'; +import path from 'node:path'; +const __dirname = getCurrentPath(import.meta.url); export const route: Route = { path: '/call-for-paper/:subject', categories: ['journal'], example: '/sciencedirect/call-for-paper/education', - parameters: {}, + parameters: { + subject: '学科分类,例如“education”', + }, radar: [ { source: ['sciencedirect.com'], @@ -18,26 +25,10 @@ export const route: Route = { description: '`sciencedirect.com/browse/calls-for-papers?subject=education` -> `/sciencedirect/call-for-paper/education`', }; -/** - * This handler fetches the calls-for-papers page on ScienceDirect, - * extracts the embedded JSON data from the