[feat] 无 Key 搜索层增加 You.com 免费搜索接口 / Add You.com's free no-key search to the no-key search layer
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 20/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- search
Direzione di ricerca
The no-key search fallback and the third-party provider list are the two places this touches, and the issue names service.ts as the home of the shared fetchJson and normalizeSources helpers. Read the no-key layer's existing Bing and DuckDuckGo parsing first to see where a new first step would sit. Do not start coding until the maintainer confirms whether they want option 1, option 2, or both, since the issue itself asks for that decision.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
描述你的建议:
先说明:我在 You.com 工作,所以请酌情参考这个建议。
没有配置任何搜索 Key 时,联网搜索会走无 Key 搜索层,也就是解析 Bing 和 DuckDuckGo 的网页结果。这种方式依赖页面结构,页面改版后可能失效。
建议:
- 在无 Key 搜索层的最前面加一步 You.com 免费接口
https://api.you.com/v1/agents/search:无需 Key、无需注册,每天 100 次。出错或额度用完时,继续走现有的 Bing / DuckDuckGo 解析。 - 在第三方搜索服务列表里加一个可选的
you,填写 Key 后使用正式 Search API(https://ydc-index.io/v1/search),额度更高。
第 1 条会改变无 Key 用户的搜索请求先发到哪里(先 You.com,再 Bing),所以要不要做由你决定。
实现上复用 service.ts 里的 fetchJson 和 normalizeSources,改动很小。请求 You.com 时会带上 User-Agent: youdotcom-integration/codexu-note-gen,方便我们统计来源,只用于 You.com 的请求。
想先确认方向:1 和 2 都要,还是只要其中一个?确认后我再提 PR。如果不合适,直接说,我会关闭这个 issue。
I work at You.com, so treat the recommendation accordingly.
When no search key is configured, web search falls back to the no-key layer, which parses Bing and DuckDuckGo result pages. That depends on page markup and can stop working when a page changes.
Proposal:
- Add You.com's free endpoint (
https://api.you.com/v1/agents/search) as the first step of the no-key layer: no key, no account, 100 searches a day. On an error or when the quota runs out, it falls through to the existing Bing and DuckDuckGo parsing. - Add an optional
youentry to the third-party provider list that uses the keyed Search API (https://ydc-index.io/v1/search) when a key is set.
Point 1 changes where no-key searches go first (You.com, then Bing), so that's your call.
It reuses fetchJson and normalizeSources in service.ts, so the change is small. For transparency: requests to You.com would send User-Agent: youdotcom-integration/codexu-note-gen, only on You.com requests.
Do you want both, or just one? I'll open the PR once you pick. If it doesn't fit, say so and I'll close this without fuss.
- Lingua principale
- TypeScript
- Stelle
- 12.9k
- Fork
- 975
- Merge medio
- 13h 8m
- PR unite (30g)
- 6
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di codexu/note-gen
-
[bug] 表格中输入多行数据后,重新进入程序,多行数据显示到一行中Forse già presa @jinchuntan l’ha presa 2 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
I maintainer di solito rispondono entro 1 giorno
-
[bug] 阅读md文档,会闪跳Forse già presa @codexu l’ha presa 2 giorni fa. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
codexu/note-gen#1299 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[bug] AI edit预览格式错误Forse già presa @codexu l’ha presa 6 giorni fa. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
codexu/note-gen#1295 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[bug] 编辑器文本显示问题Forse già presa @jinchuntan l’ha presa 2 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
I maintainer di solito rispondono entro 1 giorno
-
feature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
codexu/note-gen#1293 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di codexu/note-gen
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
farion1231/cc-switch#8829 ·
I maintainer di solito rispondono entro 1 giorno
-
[core-client] Remove unused hand-maintained transport helpers after the definition-table cutoverApertadoc-audit enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100