mirror of
https://github.com/huqi-pr/trending-in-one.git
synced 2024-11-17 13:58:28 +08:00
🎨
This commit is contained in:
parent
31584f87f4
commit
2a2db1ff24
@ -1,24 +1,24 @@
|
||||
#!/usr/bin/env -S deno run --unstable --allow-net --allow-read --allow-write --import-map=import_map.json
|
||||
import { assertEquals, assertStringIncludes } from "std/testing/asserts.ts";
|
||||
import type { Question, SearchWord, Word, ToutiaoWord } from "./types.ts";
|
||||
import type { Question, SearchWord, ToutiaoWord, Word } from "./types.ts";
|
||||
|
||||
import {
|
||||
createArchive,
|
||||
createTuotiaoList,
|
||||
createArchive4Toutiao,
|
||||
createArchive4Weibo,
|
||||
createArchive4Search,
|
||||
createQuestionList,
|
||||
createReadme,
|
||||
createReadme4Toutiao,
|
||||
createReadme4Weibo,
|
||||
createReadme4Search,
|
||||
createSearchList,
|
||||
createTuotiaoList,
|
||||
createWeiboList,
|
||||
mergeWords,
|
||||
mergeQuestions,
|
||||
mergeWords4Toutiao,
|
||||
mergeWords4Weibo,
|
||||
createWeiboList,
|
||||
createQuestionList,
|
||||
createReadme4Toutiao,
|
||||
createArchive4Toutiao,
|
||||
createArchive4Weibo,
|
||||
createReadme4Weibo,
|
||||
createReadme4Search,
|
||||
createArchive4Search,
|
||||
createSearchList,
|
||||
} from "./utils.ts";
|
||||
|
||||
Deno.test("mergeWords4Toutiao", function (): void {
|
||||
|
2
utils.ts
2
utils.ts
@ -1,4 +1,4 @@
|
||||
import type { Question, SearchWord, Word, ToutiaoWord } from "./types.ts";
|
||||
import type { Question, SearchWord, ToutiaoWord, Word } from "./types.ts";
|
||||
|
||||
/** 合并两次热门话题并根据 id 去重 */
|
||||
export function mergeQuestions(
|
||||
|
@ -5,7 +5,7 @@ import { join } from "std/path/mod.ts";
|
||||
import { exists } from "std/fs/mod.ts";
|
||||
// import { config } from 'dotenv/mod.ts'
|
||||
|
||||
import type { ZhihuQuestionList, Question } from "./types.ts";
|
||||
import type { Question, ZhihuQuestionList } from "./types.ts";
|
||||
import { createArchive, createReadme, mergeQuestions } from "./utils.ts";
|
||||
|
||||
const response = await fetch(
|
||||
|
@ -4,7 +4,7 @@ import { format } from "std/datetime/mod.ts";
|
||||
import { join } from "std/path/mod.ts";
|
||||
import { exists } from "std/fs/mod.ts";
|
||||
|
||||
import type { ZhihuVideoList, Question } from "./types.ts";
|
||||
import type { Question, ZhihuVideoList } from "./types.ts";
|
||||
import { createArchive, createReadme, mergeQuestions } from "./utils.ts";
|
||||
|
||||
const response = await fetch(
|
||||
|
Loading…
Reference in New Issue
Block a user