【问题标题】:Scopus: Unable to Communicate With the APIScopus:无法与 API 通信
【发布时间】:2022-08-19 12:50:49
【问题描述】:
import requests

params = {
    \'apiKey\': \'hidden\',
    \'author_id\': \'36573126000\'
}


def main():
    r = requests.get(\'https://api.elsevier.com/content/author\', params=params)
    print(r.text)


main()

我无法与 API 通信,因为它返回以下错误:

<service-error><status><statusCode>AUTHORIZATION_ERROR</statusCode><statusText>The requestor is not authorized to access the requested view or fields of the resource</statusText></status></service-error>

什么是/是什么问题,我该如何解决?

    标签: scopus


    【解决方案1】:

    可能有两个问题会导致这种情况:

    1. 您的 API 密钥没有正确级别的权限来访问该资源
    2. 您正试图在您的机构网络之外访问此资源,并且需要一个机构令牌来启用此功能。

      两者都可以通过以下表格联系爱思唯尔支持来解决:

      https://service.elsevier.com/app/contact/supporthub/researchproductsapis/

    【讨论】:

      【解决方案2】:

      此问题通常是因为您当前的连接/IP 与您用于创建 Scopus 帐户的连接/IP 不同;这通常是已获准访问 Scopus 的机构连接。 因此,如果需要在该特定 IP(机构 IP)之外访问 Scopus,那么您需要为自己设置一个远程 VPN 代理,否则 Inst 令牌也可以工作。

      为了清楚起见,请阅读以下内容:

      Scopus API 通过 IP 将您识别为您所在机构的成员 范围。对于远程工作,Scopus 还可以授予InstTokens.因此 需要发生以下三件事之一:

      1. 您在您机构的网络中

      2. 您使用您机构的 VPN

      3. 您使用 InstToken

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-08-18
        • 1970-01-01
        • 2016-06-11
        • 2020-01-30
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多