在python中的search_query中生成随机学术结果问题

问题描述

我为学术搜索结果创建了以下函数

DWORD resetPolicy = 0;
STARTUPINFOEXA siEx = { 0 };
SIZE_T AttributeListSize = 0;
siEx.StartupInfo.cb = sizeof(siEx);
InitializeProcThreadAttributeList(NULL,1,&AttributeListSize);
siEx.lpAttributeList = (LPPROC_THREAD_ATTRIBUTE_LIST)HeapAlloc(GetProcessHeap(),AttributeListSize);
InitializeProcThreadAttributeList(siEx.lpAttributeList,&AttributeListSize);
UpdateProcThreadAttribute(siEx.lpAttributeList,PROC_THREAD_ATTRIBUTE_MITIGATION_POLICY,&resetPolicy,sizeof(resetPolicy),NULL,NULL);
...
CreateProcessA(CurrentFilePath,FALSE,EXTENDED_STARTUPINFO_PRESENT | CREATE_SUSPENDED,(LPSTARTUPINFOA)&siEx,&PI);

并在下面实现了该功能

def scolarly_func(names):
    search_query = scholarly.search_author(names)
    author = next(search_query)
    scholarly.pprint(scholarly.fill(author,sections=['basics','indices','coauthors']))

然而,结果显示的是来自学术界的随机 4 个结果。最后是 4 [None,None,None]。

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)