This script extracts the historic word occurrence of a search term in academic papers (from Google Scholar). It allows for spotting trends in research and analyzing the relevance of a topic over time.
python extract_occurrences.py '<keyword>' <start date> <end date>
This command lists the number of publications for every year using this keyword. The script just searches for articles and excludes patents and citations.
- Search term: 'bitcoin'
- Desired time span: 2000 to 2015
- Command:
python term_frequency.py 'bitcoin' 2000 2015
- Output:
out.csv
, with the following contents:
year | results |
---|---|
... | ... |
2011 | 141 |
2012 | 292 |
2013 | 889 |
2014 | 2370 |
2015 | 2580 |
Created by Volker Strobel - [email protected]
Modifications for Python 3 version made by Patrick Hofmann