Use arXiv to search for and retrieve papers: search by keywords, get abstracts by arXiv ID, and download paper PDFs. Suitable for quickly locating papers, extracting abstracts, and bulk downloading during literature review.
使用本技能完成三类任务:
使用附带脚本:scripts/arxiv_cli.py。
先运行帮助信息;把脚本当黑盒使用。
python scripts/arxiv_cli.py --help
python scripts/arxiv_cli.py search \
--query "speech enhancement on-device" \
--max-results 10 \
--sort-by relevance \
--sort-order descending
查询字符串会透传给 arXiv(经 arxiv.py 封装)。常用示例:
all:whisper AND cat:cs.CLti:"streaming ASR" AND (cat:cs.CL OR cat:eess.AS)需要机器可读输出时,输出 JSON:
python scripts/arxiv_cli.py search --query "all:tiny asr" --max-results 5 --json
python scripts/arxiv_cli.py abstract --id 2401.01234
支持版本号(例如 2401.01234v2)。
写入目录:
python scripts/arxiv_cli.py download --id 2401.01234 --outdir ./papers
写入指定文件:
python scripts/arxiv_cli.py download --id 2401.01234 --outfile "./papers/2401.01234.pdf"
pip install arxivsearch 的 --delay-seconds 控制请求间隔Category:science-education