CoderHXL

Results 9 comments of CoderHXL

You can annotate components prop types using TypeScript。 reference: https://vuejs.org/guide/typescript/composition-api.html#typing-component-props ` defineProps `

目前新版 x-crawl 的 AI 辅助功能是依靠 OpenAI ,后续还可能加入其他 AI 。

### AI 智能按需分析元素 无需手动分析 HTML 页面结构再提取所需的元素属性或值。现在只需将 HTML 代码输入到 AI 中,并告知 AI 您想获取哪些元素的信息,AI便会自动分析页面结构,提取出相应的元素属性或值。 ```js import { createCrawlOpenAI } from 'x-crawl' const crawlOpenAIApp = createCrawlOpenAI({ clientOptions: { apiKey: '你的 API Key' }...

x-crawl 不支持 CJS ,有可能你用的是 CJS , 这里有一些小的示例:https://coder-hxl.github.io/x-crawl/cn/guide/#example

爬虫这个不好搞太多示例,一不小心就可能...

> > 好的,将会考虑加入 ollama > > 其实只要加一个配置baseUrl的属性就行了吧,ollama等都有兼容openai的接口的 刚好有 ollama 库,我试一下

在 v10.1.0 版本中支持 ollama --- https://github.com/coder-hxl/x-crawl/releases/tag/v10.1.0