Skip to content

GRAAL-Lab/scholar_export_bib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scholar_export_bib

Python Environment Setup

Choose the Python version you want to use:

PYTHON=python3.12

Check it:

$PYTHON --version

Create a virtual environment:

$PYTHON -m venv .venv

Activate it:

source .venv/bin/activate

Upgrade pip:

python -m pip install --upgrade pip

Install dependencies:

python -m pip install -r requirements.txt

Or, if there is no requirements.txt:

python -m pip install scholarly lxml

Verify 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 = relevance

Results 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.py

Or use a different config file:

python scholar_export.py --config my_search.conf

Deactivate when done:

deactivate

If venv Fails On Ubuntu/Debian

Install the venv package for your Python version:

sudo apt update
sudo apt install python3.12-venv

Then recreate the environment:

rm -rf .venv
python3.12 -m venv .venv

Fallback: Using virtualenv

If built-in venv is unavailable, install virtualenv:

python3 -m pip install --user --upgrade virtualenv

Then create the environment with your chosen Python:

~/.local/bin/virtualenv -p python3.12 .venv

Then continue normally:

source .venv/bin/activate
python -m pip install -r requirements.txt
python scholar_export.py

About

A package to export bibtex results from Google Scholar, using the scholarly python package.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages