Skip to content

feat: add arxiv and wikipedia to built-in commands table#132

Merged
jackwener merged 1 commit intojackwener:mainfrom
BruceLoveDecimal:feat/add-arxiv-wikipedia
Mar 20, 2026
Merged

feat: add arxiv and wikipedia to built-in commands table#132
jackwener merged 1 commit intojackwener:mainfrom
BruceLoveDecimal:feat/add-arxiv-wikipedia

Conversation

@BruceLoveDecimal
Copy link
Copy Markdown
Contributor

Description

Add two new public API adapters: arXiv and Wikipedia.

Both are PUBLIC strategy with browser: false — no login or Browser Bridge extension required.

arXiv (src/clis/arxiv/)

  • search <keyword> — search papers by keyword, sorted by relevance
  • paper <id> — get paper details by arXiv ID (e.g. 1706.03762)
  • Parses the public Atom/XML API without any extra dependencies

Wikipedia (src/clis/wikipedia/)

  • search <keyword> — search articles via MediaWiki Action API
  • summary <title> — get article summary via REST API v1
  • Supports --lang for multilingual queries (en, zh, ja, etc.)

Related issue:

Type of Change

  • 🌐 New site adapter

Checklist

  • I ran the checks relevant to this PR
  • I updated tests or docs if needed
  • I included output or screenshots when useful

Screenshots / Output

$ opencli arxiv search "attention is all you need" --limit 3
$ opencli arxiv paper 1706.03762
$ opencli wikipedia search "transformer"
$ opencli wikipedia summary "Transformer (machine learning model)"
$ opencli wikipedia search "人工智能" --lang zh

@BruceLoveDecimal
Copy link
Copy Markdown
Contributor Author

好像关于小红书的UT有点问题?

@jackwener jackwener merged commit 3cda14a into jackwener:main Mar 20, 2026
6 of 10 checks passed
This was referenced Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants