A simple DOI to PDF resolver for your personal use, written in Python. So you can, for example, go to ...
http://localhost:5001/10.1111/isj.12343
... and immediately see the PDF file of the article, assuming you have completed the appropriate setup:
Assuming you have:
- Downloaded the PDF, and
- Placed it in
doi_resolver_files
, and - Set up a mySQL database with table
papers
and fieldsdoi
andpdf
, and - Registered said PDF in said mySQL table, and
- Configured mySQL connection in
secrets_sqlmode.txt
.
Assuming you have:
- Downloaded the PDF, and
- Placed it in a folder somewhere, and
- Set up a CSV file with fields
doi
andpath_to_file
andfilename
, and - Registered said PDF in said mySQL table, and
- Configured mySQL connection in
secrets_csvmode.txt
.
This is for your personal use because you will need to collect PDF files during your research and save them into doi_resolver_files
. The only benefit over dx.doi.org is that you will have your files with you on the go (e.g. working without an internet connection).
doipdf_mappingfile_csv = ~/00blair/path/to/mappingfile.csv
doipdf_pdfs_folder = ~/00blair/path/to/pdfs
host = localhost
user = blair
password = secretpassword
database = doipdf
python3 -m flask run -h 0.0.0.0 -p 5001
Load requirements from file:
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements_sqlmode.txt
Save requirements to file:
pip freeze > requirements_sqlmode.txt
deactivate