This pipeline searches Elsevier or Springer for publications that match configured keywords. It collects publication records, removes duplicate DOIs, and downloads available full text or PDFs. Elsevier text can be cleaned directly. Springer PDFs can optionally be converted to text with GROBID.
Install the Python dependencies from the repository root:
python3 -m pip install -r requirements.txtEdit config.py before running the pipeline:
- Set
APIto'Elsevier'or'Springer'. - Configure the search keywords and date range.
- Set the processing mode using
MetricandFull.
Provide the selected publisher's API credentials in its local configuration file:
- Elsevier:
elsevier_config.json - Springer:
springer_config.json
Keep credential files private. Do not commit or share them. If example configuration files are provided, copy an example to the required filename and add your API key locally.
Run all commands below from the repository root.
In config.py, set:
Metric = True
Full = FalseThen run:
python3 main.pyThe search saves publication records under Data/Elsevier or Data/Springer,
depending on the selected publisher. Springer records also include a PDF URL.
Run:
python3 filter_DOIs.pyThe publisher is read from config.API. The unique DOI list is written to:
Data/DOIs/<publisher>_unique_DOIs.txt
In config.py, change the mode to:
Metric = False
Full = TrueThen run:
python3 main.pyAvailable Elsevier full text is saved under Data/Elsevier_full_txt.
Springer PDFs are saved under Data/Springer_PDFs.
Full-text availability depends on publisher access and API permissions.
For Elsevier, run:
python3 data_clean.pyThe cleaned files are saved under Data/Cleaned_Elsevier_full_txt.
For Springer, first complete the optional GROBID conversion below. Then set
API = 'Springer' in config.py and run python3 data_clean.py. The cleaned
Springer text is saved under Data/Cleaned_Springer_full_txt, if supported by
the current configuration.
This step applies only to downloaded Springer PDFs and runs separately from
main.py. It requires a running GROBID service, its Python client, and the
client configuration file at grobid_client_python/config.json.
After downloading the Springer PDFs, run:
python3 run_grobid.py
python3 parse_xml.pyGROBID XML is saved under Data/grobid_output. Extracted text is saved under
Data/Springer_full_txt. To clean the extracted text, set
API = 'Springer' in config.py and run:
python3 data_clean.py