my-crawler/src/index.ts

25 lines
442 B
TypeScript
Raw Normal View History

2025-02-20 18:41:18 +08:00
import { fetchData, queryListData } from "./link";
export type FetchType = {
typeId: string;
url: string;
name?: string;
}
const fetchList = [
{
name: 'AI写作工具',
typeId: '67908fc33de33b392c0330af',
url: 'https://ai-bot.cn/favorites/ai-writing-tools/'
},
{
name: '',
typeId: ''
2025-02-19 18:36:25 +08:00
}
2025-02-20 18:41:18 +08:00
]
function main() {
console.log("Hello, this is the main function!");
queryListData(fetchList)
// test()
}
main();