How to configure the editor to download the attachment PDF of the literature in sci-hub through url

edited August 25, 2021
I configured PDF retrieval([https://www.zotero.org/blog/improved-pdf-retrieval-with-unpaywall-integration/](https://www.zotero.org/blog/improved-pdf-retrieval-with-unpaywall-integration/)) via the extensions.zotero.findPDFs.resolvers ([https://www.zotero.org/support/kb/custom_pdf_resolvers#exampleextract_a_pdf_link_from_a_webpage](https://www.zotero.org/support/kb/custom_pdf_resolvers#exampleextract_a_pdf_link_from_a_webpage))hidden pref (Advanced preferences → Config Editor),The code is as follows:

```
{ 'name':'Sci-Hub', 'method':'GET', 'url':'https://sci-hub.ren/{doi}', 'mode':'html', 'selector':'#pdf', 'attribute':'src', 'automatic':true }
```

At present, it is possible to download PDF for documents through doi, but some articles (for example: A Sensitivity Analysis of Cross-Country Growth Regressions) do not have doi, so they will fail to download PDF through the URL where the literature is located, but they can be downloaded at sci-hub through the URL. I would like to ask how I should modify my code in order to realize the PDF of downloading documents through url?
  • Change doi to url in the code
  • Thank you. In fact, I actually tried to change doi to url before I asked the question, but it didn't work.
  • That should be the correct code. Are you able to access the PDF if you use the service directly?
  • edited August 27, 2021
    @bwiernik I have changed the doi in the code to url as you said before, that is, the following paragraph↓

    ```
    However, the PDF that should have been downloaded from sci-hub is still not available. The literature link for the example is{ 'name':'Sci-Hub', 'method':'GET', 'url':'https://sci-hub.ren/{url}', 'mode':'html', 'selector':'#pdf', 'attribute':'src', 'automatic':true }
    ```

    However, the PDF that should have been downloaded from sci-hub is still not available. The literature link for the example is https://www.jstor.org/stable/2117352,Using its link in sci-hub, https://sci-hub.ren/10.2307/2117352 can be easily downloaded to the corresponding PDF in the literature
Sign In or Register to comment.