This tool creates visualizations of how frequently terms appear in academic publications over time, based on Google Scholar data. It scrapes the number of search results for each year and generates a graph.
- Install Python dependencies:
pip install pandas matplotlib selenium beautifulsoup4- Install ChromeDriver:
- MacOS:
brew install chromedriver - Windows/Linux:
- Check your Chrome version (Help > About Google Chrome)
- Download matching ChromeDriver from https://sites.google.com/chromium.org/driver/
- Add to system PATH
- Save the script as
scholar_graph.py - Run:
python scholar_graph.py - Follow the prompts to enter:
- Search term
- Start year
- End year
The tool will display a graph showing publication frequency over time.
- Use responsibly to avoid being blocked by Google Scholar
- The tool includes a 2-second delay between requests
- Results are approximate based on Google Scholar's "About X results" count
- Requires active internet connection
- Chrome browser must be installed
If you get WebDriver errors:
- Verify Chrome is installed
- Ensure ChromeDriver version matches your Chrome version
- Check that ChromeDriver is in your system PATH
- Google Scholar may block rapid repeated requests
- Results are estimates, not exact counts
- Cannot handle complex search queries with special characters