镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-06 14:36:48 +00:00
fix:没有获取到所有版本时的处理
这个提交包含在:
@@ -57,9 +57,9 @@ def get_meta_information(url, chatbot, history):
|
||||
except:
|
||||
citation = 'cited by 0'
|
||||
abstract = result.select_one(".gs_rs").text.strip() # 摘要在 .gs_rs 中的文本,需要清除首尾空格
|
||||
other_versions = next((tag['href'] for tag in result.select_one('.gs_flb').select('.gs_nph') if 'cluster' in tag['href']), None) # 获取所有版本的链接
|
||||
search = search_all_version('http://' + urlparse(url).netloc + other_versions)
|
||||
try:
|
||||
other_versions = next((tag['href'] for tag in result.select_one('.gs_flb').select('.gs_nph') if 'cluster' in tag['href']), None) # 获取所有版本的链接
|
||||
search = search_all_version('http://' + urlparse(url).netloc + other_versions)
|
||||
if search:
|
||||
paper = next(search.results())
|
||||
abstract = paper.summary.replace('\n', ' ')
|
||||
|
||||
在新工单中引用
屏蔽一个用户