TOXRA.AI / core /sources /scholar.py
hchevva's picture
Upload 14 files
fc29964 verified
raw
history blame contribute delete
309 Bytes
from __future__ import annotations
from urllib.parse import quote_plus
def scholar_link(query: str) -> str:
q = (query or "").strip()
if not q:
return ""
# Mirror JS behavior: add a genotoxicity hint.
return f"https://scholar.google.com/scholar?q={quote_plus(q + ' genotoxicity')}"