prismAId

Download Tool


Page Contents

Purpose and Capabilities

The prismAId Download tool is designed to streamline the literature acquisition phase of your systematic review. It offers two primary functionalities:

  1. URL-based Downloads: Batch download papers from a list of URLs for efficient collection of literature.
  2. Zotero Integration: Direct access to papers stored in your Zotero library or group collections.

This tool bridges the gap between literature identification and analysis by automating the tedious process of gathering papers, allowing you to focus on the review itself rather than manual collection tasks.

Usage Methods

The Download tool can be accessed through multiple interfaces to fit your preferred workflow:

Binary (Command Line)

# For URL list downloads
./prismaid -download-URL path/to/urls.txt

# For Zotero downloads (requires a TOML config file)
# First create a file zotero_config.toml with:
#   user = "your_username"
#   api_key = "your_api_key"
#   group = "Your Collection"
./prismaid -download-zotero zotero_config.toml

Go Package

import "github.com/open-and-sustainable/prismaid"

// Download from URL list
err := prismaid.DownloadURLList("path/to/urls.txt")

// Download from Zotero
err := prismaid.DownloadZoteroPDFs("username", "apiKey", "collectionName", "./papers")

Python Package

import prismaid

# Download from URL list
prismaid.download_url_list("path/to/urls.txt")

# Download from Zotero
prismaid.download_zotero_pdfs("username", "api_key", "collection_name", "./papers")

R Package

library(prismaid)

# Download from URL list
DownloadURLList("path/to/urls.txt")

# Download from Zotero
DownloadZoteroPDFs("username", "api_key", "collection_name", "./papers")

Julia Package

using PrismAId

# Download from URL list
PrismAId.download_url_list("path/to/urls.txt")

# Download from Zotero
PrismAId.download_zotero_pdfs("username", "api_key", "collection_name", "./papers")

Downloading from URL Lists

The URL list download feature allows you to batch download papers from a text file containing URLs, one per line.

Creating Your URL List

  1. Create a simple text file (e.g., paper_urls.txt)
  2. Add one paper URL per line, for example:
    https://arxiv.org/pdf/2303.08774.pdf
    https://www.science.org/doi/pdf/10.1126/science.1236498
    https://www.nature.com/articles/s41586-021-03819-2.pdf
    
  3. Save the file

Running the Download

Using your preferred method from the Usage Methods section, point the tool to your URL list. For example, with the binary:

./prismaid -download-URL paper_urls.txt

Output

Papers will be downloaded to the current working directory by default. Each paper is saved with a filename derived from its URL.

Zotero Integration

The Zotero integration allows direct access to papers stored in your Zotero library or group collections.

Getting Your Zotero Credentials

  1. Find Your User ID:
    • Go to the Zotero Settings page
    • Navigate to the Security tab, then to the Applications section
    • Your user ID is displayed at the top:
    Zotero User ID
  2. Generate an API Key:
    • Click “Create new private key”
    • Enable “Allow library access”
    • Set permissions to “Read Only” for all groups under “Default Group Permissions”
    • Provide a name for the key, such as “prismAId”
    • Click “Save Key” and copy your new API key
    Zotero API Key

Specifying Collections and Groups

The collection parameter uses a filesystem-like representation for your Zotero library structure:

Creating a Zotero Config File

For the binary method, create a TOML configuration file (e.g., zotero_config.toml):

user = "12345678"  # Your Zotero user ID
api_key = "AbCdEfGhIjKlMnOpQrStUv"  # Your Zotero API key
group = "Systematic Review/Climate Papers"  # Your collection path

Running the Download

Choose your preferred method from the Usage Methods section. For example, with the binary:

./prismaid -download-zotero zotero_config.toml

Or with Python:

import prismaid
prismaid.download_zotero_pdfs("12345678", "AbCdEfGhIjKlMnOpQrStUv", "Systematic Review/Climate Papers")

Best Practices

To get the most out of the Download tool:

  1. Organize before downloading:
    • When using Zotero, organize papers into collections based on their relevance to your review
    • For URL lists, verify all URLs are accessible before batch downloading
  2. Check for duplicates:
    • Zotero can help identify duplicate entries before downloading
    • Use consistent file naming in URL lists to avoid duplicate downloads
  3. Verify accessibility:
    • Ensure you have access rights to all papers before downloading
    • Some journals may require institutional access or subscriptions
  4. Structure your downloads:
    • Use separate output directories for different paper categories
    • Consider naming conventions that will help with the next workflow steps
  5. Batch processing:
    • For large reviews, consider downloading in batches to manage resources
    • This approach also allows for quality checks along the way

Troubleshooting

Common Issues with URL Downloads

Common Issues with Zotero Integration

Workflow Integration

The Download tool is designed to fit seamlessly into your systematic review workflow:

  1. Literature Identification:
    • Search databases and identify relevant papers
    • Save references to Zotero or create a URL list
  2. Literature Acquisition (Download Tool):
    • Download papers from Zotero collections or URL lists
    • Organize papers in a structured directory
  3. Format Conversion (Convert Tool):
    • Convert downloaded papers to text format for analysis
  4. Review Configuration:
    • Set up your review project configuration
  5. Systematic Review (Review Tool):
    • Process papers and extract structured information

By automating the literature acquisition step with the Download tool, you can significantly reduce the time and effort required for systematic reviews while ensuring a comprehensive and well-organized collection of literature.