You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
先去Google scholar拿 URL的方法还是繁琐。
def 谷歌检索小助手(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port): # 把用户输入换成 Google Scholar Search Link,不需要copy Link # need to replace some characters for the URL format rpl_dic = { "%":"%25", "&":"%26", "(":"%28", ")":"%29", "*":"%2A", "+":"%2B", ":":"%3A", ",":"%2C" } for char in rpl_dic.keys(): txt = txt.replace(char, rpl_dic[char]) txt = "+".join(txt.split()) txt = f'https://scholar.google.com/scholar?hl=en&as_sdt=0%2C11&q={txt}'这样在输入框直接输入关键词就可以了
Beta Was this translation helpful? Give feedback.
All reactions