Spaces:
Sleeping
Sleeping
Commit
·
2f52b04
1
Parent(s):
3cb4ac5
Update utils.py
Browse files
utils.py
CHANGED
@@ -83,7 +83,7 @@ class XRxivQuery:
|
|
83 |
# Call chemrxiv API
|
84 |
journal = 'chemRxiv'
|
85 |
max_chemrxiv_papers = max_papers_in_server[1]
|
86 |
-
chemrxiv_url = f'https://chemrxiv.org/engage/chemrxiv/public-api/v1/items?term="{"%20".join(search_query)}"&sort=
|
87 |
req = urllib.request.Request(
|
88 |
url=chemrxiv_url,
|
89 |
headers={'User-Agent': 'Mozilla/5.0'}
|
|
|
83 |
# Call chemrxiv API
|
84 |
journal = 'chemRxiv'
|
85 |
max_chemrxiv_papers = max_papers_in_server[1]
|
86 |
+
chemrxiv_url = f'https://chemrxiv.org/engage/chemrxiv/public-api/v1/items?term="{"%20".join(search_query)}"&sort=RELEVANT_DESC&limit={max_chemrxiv_papers}'
|
87 |
req = urllib.request.Request(
|
88 |
url=chemrxiv_url,
|
89 |
headers={'User-Agent': 'Mozilla/5.0'}
|