Spaces:
Sleeping
Sleeping
Delete papersearch.py
Browse files- papersearch.py +0 -20
papersearch.py
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
import arxiv
|
2 |
-
|
3 |
-
def θ«ζζε°(ιι΅ε, max_results=10, start_year=2000, end_year=2025):
|
4 |
-
search = arxiv.Search(
|
5 |
-
query=ιι΅ε,
|
6 |
-
max_results=max_results,
|
7 |
-
sort_by=arxiv.SortCriterion.SubmittedDate
|
8 |
-
)
|
9 |
-
papers = []
|
10 |
-
for result in search.results():
|
11 |
-
if not (start_year <= result.published.year <= end_year):
|
12 |
-
continue
|
13 |
-
papers.append({
|
14 |
-
"ζ¨ι‘": result.title,
|
15 |
-
"δ½θ
": ", ".join([a.name for a in result.authors]),
|
16 |
-
"ηΌθ‘¨ζ₯ζ": str(result.published)[:10],
|
17 |
-
"ζθ¦": result.summary,
|
18 |
-
"arXiv ι£η΅": result.entry_id
|
19 |
-
})
|
20 |
-
return papers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|