⇄ConnectorResearchFree
arxiv.py — arXiv API Python Wrapper
Pythonic client for the arXiv API: search, download, and stream 2M+ preprints by query, author, or ID.
インストール数34k
評価★ 4.6
レビュー11
arxiv.py — arXiv API Python Wrapper
arxiv.py is a lightweight, well-maintained Python wrapper for the arXiv API, enabling agents and researchers to search, stream, and download papers from the largest open-access preprint repository with 2M+ papers.
Key features
- Rich search with filters: category, date range, author, abstract keywords
- Lazy streaming results — avoids loading full pages at once
- Auto-retry on transient API errors
- One-line PDF download
- Typed
Resultobjects with all metadata (DOI, categories, journal ref)
Quick start
pip install arxiv
import arxiv
search = arxiv.Search(
query="large language models",
max_results=5,
sort_by=arxiv.SortCriterion.SubmittedDate
)
for r in arxiv.Client().results(search):
print(r.title, r.pdf_url)
r.download_pdf(dirpath="./papers")
npx ai-supply add arxiv-py-api-wrapper
Curated mirror of the open-source arxiv.py (MIT). Get it from the source.