Automate Google Scholar Citation Metrics in Your CV


Update your citation count daily in your CV (Windows user)


There are three steps to update the google scholar metrics in your CV automatically:

Step 1:  Add bookmarks at the proper location of your CV word document where you want to insert your citation metrics (citations, h_index, h10_index ); read about bookmarks here

Step 2: Setup an R script to update the bookmarks
#############################
# Load Packages #
#############################
library(officer) #for the first time: install.packages("scholar", repos='http://cran.us.r-project.org')
library(scholar) #for the first time: install.packages("scholar", repos='http://cran.us.r-project.org')

####################################
# Calculate Google Scholar Metrics #
####################################

my_Google_Scholar<-get_profile('lAlTf3sAAAAJ') # change 'lAlTf3sAAAAJ' to your own google scholar page
a<-as.character(my_Google_Scholar$total_cites)
b<-as.character(my_Google_Scholar$h_index)
c<-as.character(my_Google_Scholar$i10_index)

#######################################
# Update Citation Metrics in CV #
#######################################

doc <- read_docx("C:\\MyDocuments\\CV\\CV.docx") # use "\\" 
body_replace_text_at_bkm(doc, 'citations', a)
body_replace_text_at_bkm(doc, 'h_index', b)
body_replace_text_at_bkm(doc, 'h10_index', c)
print(doc, target = "C:\\MyDocuments\\CV\\CV.docx")
Step 3:  Schedule the R script to run automatically in Windows
Use "Task Scheduler" (search for it in the Start Menu of your computer) to  "Create basic task... " You’ll need to tell the Task Scheduler which program you want to run. You will type in the path to Rscript.exe in the Program/script box, and type in the full path to your R script in the Add arguments (optional) box.

And that should work, you won't need to look up your google scholar metrics again when you update your CV.



Follow this website


You need to create an Owlstown account to follow this website.


Sign up

Already an Owlstown member?

Log in