From 003dbd8bca241ff2cd3c5808a490baa19d25ce99 Mon Sep 17 00:00:00 2001 From: Godlike <26649232+godlikeanyone@users.noreply.github.com> Date: Sat, 2 Nov 2024 21:51:18 +0800 Subject: [PATCH] google Force Simplified Chinese Results for MagicGoogle Searches (#187) --- google/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/main.py b/google/main.py index 2bc1390..65c2d66 100644 --- a/google/main.py +++ b/google/main.py @@ -22,7 +22,7 @@ async def google(message: Message): if not Config.SILENT: message = await message.edit(lang("google_processing")) results = "" - for i in mg.search(query=query, num=5): + for i in mg.search(query=query, num=5, language="zh-CN"): try: title = i["text"][:30] + "..." link = i["url"]