8000 GitHub - sjhilt/scholar-card: A google scholar widget for your website
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sjhilt/scholar-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scholar Stats Embed iFrame card

This project allows you to display your Google Scholar citation metrics in a clean, responsive card via an iframe. It's ideal for embedding on academic or personal websites.

Live Demo

Features

  • Displays total and recent citations
  • Shows research impact metrics (h-index)
  • Modern, mobile-friendly design
  • Easily embeddable via iframe
  • No external dependencies beyond standard Python and browser JS

Info

<iframe src="/scholar-box.html" width="100%" height="340" style="border: none;"></iframe>

How It Works:

  1. A Python script scrapes your Google Scholar profile.
  2. It generates a scholar-stats.json file with the key metrics.
  3. A styled scholar-box.html reads this JSON and displays it.
  4. This page can be embedded via iframe on any website.

Setup

1. Clone the repository

git clone https://github.com/sjhilt/scholar-card.git
cd scholar-card

2. Install Python dependencies

Use a virtual environment:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

3. Set your Google Scholar ID

Edit scholar_stats.py and replace:

USER_ID = 'YOUR_GOOGLE_SCHOLAR_ID'

Also edit in scholar-box.html

<a href="https://scholar.google.com/citations?user=YOUR_GOOGLE_SCHOLAR_ID" target="_blank">

4. Generate the JSON

python scholar_stats.py

5. Serve the site

You can test locally with:

python3 -m http.server

Or host it under /var/www/html/ for Apache/Nginx.

6. Embed the iframe

On your main website, embed the following:

<iframe src="/scholar-box.html" width="100%" height="360" style="border: none;"></iframe>

Automate Updates (Optional)

You can set up a cron job to refresh the data periodically.

crontab -e

Add this line (adjust paths as needed):

0 2 * * * /full/path/to/venv/bin/python /full/path/to/scholar_stats.py

License

This project is open-source and available under the MIT License.

About

A google scholar widget for your website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0