A Flask API that converts Google Scholar publications to BibTeX format using SerpAPI.
- Convert Google Scholar profile to BibTeX format
- RESTful API endpoints
- Docker support
- Health check endpoint
- Docker (for containerized deployment)
- SerpAPI key (get one at https://serpapi.com/)
- Clone the repository:
git clone https://github.com/jshinodea/scholar_to_bibtex
cd scholar_to_bibtex
- Create a
.env
file:
SERPAPI_KEY=your_api_key_here
- Build and run the Docker container:
docker build -t scholar_to_bibtex .
docker run -p 5000:5000 --env-file .env scholar_to_bibtex
- Get a .bib file from the API:
curl -X POST http://localhost:5000/convert -H "Content-Type: application/json" -d "{\"scholar_url\": \"PUT URL HERE\"}" --output citations.bib
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Run the application:
python app.py
POST /convert
Content-Type: application/json
{
"scholar_url": "https://scholar.google.com/citations?user=AUTHOR_ID"
}
GET /health
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.