Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[feat] 无 Key 搜索层增加 You.com 免费搜索接口 / Add You.com's free no-key search to the no-key search layer

Aperta
#1,289 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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 的网页结果。这种方式依赖页面结构,页面改版后可能失效。

建议:

  1. 在无 Key 搜索层的最前面加一步 You.com 免费接口 https://api.you.com/v1/agents/search:无需 Key、无需注册,每天 100 次。出错或额度用完时,继续走现有的 Bing / DuckDuckGo 解析。
  2. 在第三方搜索服务列表里加一个可选的 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:

  1. 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.
  2. Add an optional you entry 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codexu/note-gen

Tutte le issue di codexu/note-gen

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.