David Chu commited on
Commit
3440d6a
·
unverified ·
1 Parent(s): 70c3a64

fix: remove unused module

Browse files
Files changed (1) hide show
  1. app/tools/pubmed.py +0 -24
app/tools/pubmed.py DELETED
@@ -1,24 +0,0 @@
1
- import httpx
2
-
3
-
4
- def search(query: str, top_k: int = 10, db: str = "pubmed"):
5
- resp = httpx.get(
6
- "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi",
7
- params={
8
- "term": query,
9
- "db": db,
10
- "retmax": top_k,
11
- "retmode": "json",
12
- },
13
- )
14
- id_list = resp.json()["esearchresult"]["idlist"]
15
-
16
- resp = httpx.get(
17
- "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi",
18
- params={
19
- "db": db,
20
- "id": ",".join(id_list),
21
- "retmode": "json",
22
- },
23
- )
24
- return resp.json()