<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/update-to-getlattesdata/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://msperlin.github.io/2018-10-11-Update-GetLattesData/"> Marcelo S. Perlin</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p> – </p>
<p>Last year I released package <code>GetLattesData</code>. This package is very handy<br>
for anyone that researches bibliometric data of Brazilian scholars. You<br>
could easily import the whole academic history of any researcher<br>
registered at the platform. More details in the this<br>
<a rel="nofollow" href="https://msperlin.github.io/2017-09-04-Package-GetLattesData/" target="_blank">post</a>.</p>
<p>However, a couple months ago CNPQ introduced a captcha in the webpage.<br>
This made it impossible to download the xml files directly, breaking my<br>
code. It seems that those changes are now permanent. The update to<br>
GetLattesData will address this issue by asking the user to download the<br>
files manually and input its location to function<br>
<code>gld_get_lattes_data_from_zip</code>. Unfortunately, one can no longer<br>
download the files by code.</p>
<p>Next I provide an example of usage from the vignette:</p>
<div>
<div>
<pre><code>library(GetLattesData)

# get files from pkg (you can download from other researchers in lattes website)
f.in &lt;- c(system.file('extdata/3262699324398819.zip', package = 'GetLattesData'),
          system.file('extdata/8373564643000623.zip', package = 'GetLattesData'))

# set qualis
field.qualis = 'ADMINISTRAÇÃO PÚBLICA E DE EMPRESAS, CIÊNCIAS CONTÁBEIS E TURISMO'

# get data
l.out &lt;- gld_get_lattes_data_from_zip(f.in, 
                                      field.qualis = field.qualis )

## 
## Reading  3262699324398819.zip -  Marcelo Scherer Perlin
##  Found 21 published papers
##  Found 2 accepted paper(s)
##  Found 10 supervisions
##  Found 2 published books
##  Found 0 book chapters
##  Found 17 conference papers
## Reading  8373564643000623.zip -  Denis Borenstein
##  Found 75 published papers
##  Found 2 accepted paper(s)
##  Found 97 supervisions
##  Found 1 published books
##  Found 6 book chapters
##  Found 89 conference papers
</code></pre>
</div>
</div>
<p>The output <code>my.l</code> is a list with the following dataframes:</p>
<div>
<div>
<pre><code>names(l.out)

## [1] &quot;tpesq&quot;             &quot;tpublic.published&quot; &quot;tpublic.accepted&quot; 
## [4] &quot;tsupervisions&quot;     &quot;tbooks&quot;            &quot;tconferences&quot;
</code></pre>
</div>
</div>
<p>The first is a dataframe with information about researchers:</p>
<div>
<div>
<pre><code>tpesq &lt;- l.out$tpesq
str(tpesq)

## 'data.frame':    2 obs. of  9 variables:
##  $ name           : chr  &quot;Marcelo Scherer Perlin&quot; &quot;Denis Borenstein&quot;
##  $ last.update    : Date, format: &quot;2018-09-24&quot; &quot;2018-08-24&quot;
##  $ phd.institution: chr  &quot;University of Reading&quot; &quot;University of Strathclyde&quot;
##  $ phd.start.year : num  2007 1991
##  $ phd.end.year   : num  2010 1995
##  $ country.origin : chr  &quot;Brasil&quot; &quot;Brasil&quot;
##  $ major.field    : chr  &quot;CIENCIAS_SOCIAIS_APLICADAS&quot; &quot;ENGENHARIAS&quot;
##  $ minor.field    : chr  &quot;Administração&quot; &quot;Engenharia de Produção&quot;
##  $ id.file        : chr  &quot;3262699324398819.zip&quot; &quot;8373564643000623.zip&quot;
</code></pre>
</div>
</div>
<p>The second dataframe contains information about all published<br>
publications, including Qualis and SJR:</p>
<div>
<div>
<pre><code>dplyr::glimpse(l.out$tpublic.published)

## Observations: 96
## Variables: 12
## $ id.file       </code></pre></div></div>