Choose the Python version you want to use:
PYTHON=python3.12Check it:
$PYTHON --versionCreate a virtual environment:
$PYTHON -m venv .venvActivate it:
source .venv/bin/activateUpgrade pip:
python -m pip install --upgrade pipInstall dependencies:
python -m pip install -r requirements.txtOr, if there is no requirements.txt:
python -m pip install scholarly lxmlVerify the install:
python -c "import sys, scholarly; print(sys.version); print(scholarly.__file__)"Configure the search in scholar_export.conf:
[search]
keywords = """
("Underwater Robotics" OR "Marine Robotics" OR "AUV" OR "ROV" OR "Subsea Robotics")
AND
("Artificial Intelligence" OR "Autonomous Navigation" OR "SLAM" OR "Sensor Fusion" OR "Digital Twin")
AND
("Marine Monitoring" OR "Ocean Observation" OR "Underwater Inspection" OR "Ocean Exploration" OR "Marine Ecosystems")
"""
start_year = 2000
end_year = 2026
output = exports/publications_2000_2026.bib
txt = true
max_results = 50
delay = 1.0
fill_publications = false
patents = false
citations = false
sort_by = relevanceResults are written in the exports/ folder. If the configured BibTeX output
already exists, the script writes to the next available numbered file, for
example exports/publications_2000_2026_1.bib.
Run the script:
python scholar_export.pyOr use a different config file:
python scholar_export.py --config my_search.confDeactivate when done:
deactivateInstall the venv package for your Python version:
sudo apt update
sudo apt install python3.12-venvThen recreate the environment:
rm -rf .venv
python3.12 -m venv .venvIf built-in venv is unavailable, install virtualenv:
python3 -m pip install --user --upgrade virtualenvThen create the environment with your chosen Python:
~/.local/bin/virtualenv -p python3.12 .venvThen continue normally:
source .venv/bin/activate
python -m pip install -r requirements.txt
python scholar_export.py