【问题标题】:error while search against the Scopus Search API and save the results in batches into a xml file搜索 Scopus 搜索 API 时出错并将结果批量保存到 xml 文件中
【发布时间】:2020-04-27 15:43:23
【问题描述】:

我正在尝试使用 rscopus 以及我从 https://github.com/christopherBelter/scopusAPI 获得的函数从 Scopus 中提取摘要

我有使用我的大学帐户的 API 密钥,但是在尝试将数据保存为 xml 时,使用:

theXML <- searchByString(string = query, outfile = "testdata.xml")

我遇到了一个错误:

Error in searchByString(string = query, outfile = "testdata.xml") : Unauthorized (HTTP 401).
    3. stop(http_condition(x, "error", task = task, call = call))
    2. httr::stop_for_status(theURL) at scopusAPI.R#12
    1. searchByString(string = query, outfile = "testdata.xml")

我的 API 密钥是否有问题,因为“:未经授权 (HTTP 401)”?

【问题讨论】:

    标签: r xml xml-parsing xmlhttprequest scopus


    【解决方案1】:

    您是否尝试过在脚本之外验证您的字符串?

    Elsevier Developer Portal 将是一个很好的地方来尝试您的字符串以确认它是否有效或对其进行改进以使其有效

    "https://dev.elsevier.com/scopus.html"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-01-25
      • 2021-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-27
      相关资源
      最近更新 更多