【问题标题】:Download pubmed papers based on DOI from sci-hub API in python3.5从 python3.5 中的 sci-hub API 下载基于 DOI 的已发表论文
【发布时间】:2023-03-02 23:42:01
【问题描述】:

在 python 3.5 中,为了根据他们的 DOIpubmed 下载一些论文,我在 github 上使用了这个链接 https://github.com/antiufo/scihub.py

首先我安装了所有包,然后我将这个类 https://github.com/antiufo/scihub.py/blob/master/scihub/scihub.py 复制到我的项目中,然后在 scihub.py 之外的一个新项目中,我已经从 创建了一个对象SciHub 类,用于通过它的 DOI 下载和获取论文,如下所示:

在这个链接中:https://www.ncbi.nlm.nih.gov/pubmed/28440475DOI 是:10.3892/or.2017.5600,我想下载这篇论文。

from scihub import SciHub

sh = SciHub()

result = sh.fetch(identifier='10.3892/or.2017.5600')
print(result)
result = sh.download(identifier='10.3892/or.2017.5600', destination='D:\me',path='myPdfFile.pdf')

但什么也没发生。 我该如何解决这个问题?

【问题讨论】:

    标签: python python-3.x download pubmed doi


    【解决方案1】:

    我已经直接在终端上试过了,使用命令

    python2 scihub.py -d https://doi.org/10.1103/PhysRevE.76.036111
    

    在这种情况下,我必须输入 https://doi.org/ 并且在 DOI 之后,它在这种情况下工作得很好。如果您像包一样使用 SciHub API,您可以尝试使用带有 https://doi.org/ 的标识符。

    希望能帮到你。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-11
      • 1970-01-01
      • 1970-01-01
      • 2017-08-26
      • 2022-01-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多