An open source, non-profit web search engine
Remove tags=story filter from HN search to include comments
Daoud Clarke5e41e2b38080
diff --git a/mwmbl/tinysearchengine/super_search_sources/hn.py b/mwmbl/tinysearchengine/super_search_sources/hn.pyindex 63cde40..5f3cc40 100644--- a/mwmbl/tinysearchengine/super_search_sources/hn.py+++ b/mwmbl/tinysearchengine/super_search_sources/hn.py@@ -16,7 +16,7 @@ async def search(client: httpx.AsyncClient, query: str, limit: int) -> list[Docuquoted_query = " ".join(f'"{term}"' for term in query.split())response = await client.get(ENDPOINT,- params={"query": quoted_query, "hitsPerPage": limit, "tags": "story"},+ params={"query": quoted_query, "hitsPerPage": limit},)response.raise_for_status()payload = response.json()