Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

563 B
Raw Blame
import { cli, Strategy } from '@jackwener/opencli/registry';
import { loadDoubanBookHot } from './utils.js';
cli({
    site: 'douban',
    name: 'book-hot',
    access: 'read',
    description: '豆瓣图书热门榜单',
    domain: 'book.douban.com',
    strategy: Strategy.COOKIE,
    args: [
        { name: 'limit', type: 'int', default: 20, help: '返回的图书数量' },
    ],
    columns: ['rank', 'title', 'rating', 'quote', 'author', 'publisher', 'year', 'url'],
    func: async (page, args) => loadDoubanBookHot(page, Number(args.limit) || 20),
});