This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Literature text exploration to display statistics in Pubmed

Dear all,

im searching for an automated method to display number articles showing a certain word in their abstract, or a combination of words, in order to display the relevance of a specific topic per year. Is there any automated tool in R to do this?

Thanks in advance

textmining r pubmed

1 answer

using eutils

$ seq 2000 2020 | while read Y ; do wget -q -O - "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=cancer[TIAD]+${Y}[PDAT]&rettype=count" | xmllint --xpath '/eSearchResult/Count/text()' - && echo " $Y"; done
70841 2000
73077 2001
77046 2002
82359 2003
87846 2004
95922 2005
101669 2006
109287 2007
116405 2008
122694 2009
134831 2010
148008 2011
160234 2012
170030 2013
186178 2014
197131 2015
200465 2016
205727 2017
211457 2018
200854 2019
12392 2020

Log in to answer this question.