File size: 364 Bytes
35462bd
23bd4e2
426090f
35462bd
426090f
35462bd
426090f
 
1
2
3
4
5
6
7
8
from __future__ import annotations
from urllib.parse import quote
import httpx

def bookshelf_link(query: str) -> dict:
    q = (query or "").strip()
    url = "https://www.ncbi.nlm.nih.gov/books/?term=" + quote(f'{q} "IARC Monographs"', safe="")
    return {"ok": True, "results": [{"title": f'IARC Monographs — results for “{q}” (Bookshelf)', "url": url}]}