Creates a citation for each PDF in a given folder (and all sub-folders) and adds them to an RIS file which can be uploaded to Zotero and/or other programs which accept RIS format.
Any output file may need to be cleaned up by the user.
- If you don't have git, you'll need to install it:
- Clone this repo to your local computer:
git clone https://github.com/asaltveit/create-biblio.git
- Enter the project folder:
cd create-biblio
- If you don't have Python3, install that:
- For Mac users: https://www.python.org/downloads/macos/
- For Windows users: https://www.python.org/downloads/windows/
- For Linux/Unix users: https://www.python.org/downloads/source/
- For other users: https://www.python.org/download/other/
- pip should be included with Python3, but if it isn't, see here:
- Create a virtual environment to install the dependencies in:
python -m venv .venv
- Start the virtual environment:
.venv\Scripts\activate.bat
- Create a virtual environment to install the dependencies in:
python3 -m venv .venv
- Start the virtual environment:
source .venv/bin/activate
- Install the package prerequisites for this project:
pip install -r requirements.txt
- If you're setting up for development, you can install both the program and dev requirements with:
pip install -r requirements-dev.txt
python3 create_biblio.py --inputPath="path/to/folder" --outputPath="optional/path/to/file.ris"
If you get a python error, try:
python create_biblio.py --inputPath="path/to/folder" --outputPath="optional/path/to/file.ris"
Outputs:
- file.ris
- If the output file name is not given, default creates the file name from the input path like "path/to/folder" -> folder.ris
- The output file will be placed in the input folder
- The output file will include citation info for all PDFs.
- The .ris file won't be written to if there are no citations to write.
- A full set of unit tests
- Additional output file types