pdf-summarizer-app / papersearch.py
3a05chatgpt's picture
Upload 8 files
50a43ab verified
raw
history blame
685 Bytes
import arxiv
def θ«–ζ–‡ζœε°‹(ι—œι΅ε­—, max_results=10, start_year=2000, end_year=2025):
search = arxiv.Search(
query=ι—œι΅ε­—,
max_results=max_results,
sort_by=arxiv.SortCriterion.SubmittedDate
)
papers = []
for result in search.results():
if not (start_year <= result.published.year <= end_year):
continue
papers.append({
"ζ¨™ι‘Œ": result.title,
"δ½œθ€…": ", ".join([a.name for a in result.authors]),
"發葨ζ—₯期": str(result.published)[:10],
"ζ‘˜θ¦": result.summary,
"arXiv 連硐": result.entry_id
})
return papers