Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Still getting errors? #10

Closed
diogoprov opened this issue Oct 5, 2018 · 9 comments
Closed

Still getting errors? #10

diogoprov opened this issue Oct 5, 2018 · 9 comments

Comments

@diogoprov
Copy link

@diogoprov diogoprov commented Oct 5, 2018

Hi Marcelo,
it seems that Lattes is back again without captcha, but I'm still getting an error when running the example script.

After downloading the data from the IDs, I got this:

Error: XML content does not seem to be XML: '/var/folders/kd/_k75gv855qxbyrqq0rtqk1w40000gr/T//Rtmpy6VvBp/curriculo.xml'
In addition: Warning message:
In utils::unzip(zip.in, exdir = my.tempdir) :
  error 1 in extracting from zip file

Is this the same error of the time with captcha or I'm doing something wrong?

@msperlin
Copy link
Owner

@msperlin msperlin commented Oct 5, 2018

The issue is that, for the xml zipped files, the captcha is still on.

You can still download the zip files mannualy and latter reade with gld_read_zip.

@msperlin
Copy link
Owner

@msperlin msperlin commented Oct 5, 2018

I should soon release a new version of Getlattesdata, but it will probably come with less features.

@msperlin msperlin closed this Oct 5, 2018
@diogoprov
Copy link
Author

@diogoprov diogoprov commented Oct 5, 2018

No problem, thanks a lot Marcelo! I'll try to download them manually

@msperlin
Copy link
Owner

@msperlin msperlin commented Oct 11, 2018

Hi,

I just posted a new version of the package on github and CRAN. Now one must use local zip files to read the data.

Best,

@diogoprov
Copy link
Author

@diogoprov diogoprov commented Oct 11, 2018

Oi Perlin,
teria um vignette novo pra fazer o que vc exemplifica mas com essa função nova que lê os zips?

Obrigado

@diogoprov
Copy link
Author

@diogoprov diogoprov commented Oct 11, 2018

Baixei todos os 28 cv que me interessavam em .xml e fiz um .zip deles. Estou anexando ele aqui:

Arquivo Comprimido.zip

Rodei as seguintes linhas:

f.in <- system.file("Arquivo Comprimido.zip", package = 'GetLattesData')
my.l <- gld_read_zip(f.in)
Error in gld_read_zip(f.in) : File does not exists..
f.in <- system.file("Arquivo Comprimido.zip", package = 'GetLattesData')
l.out <- gld_get_lattes_data_from_zip(f.in, field.qualis = field.qualis)
Error in gld_get_lattes_data_from_zip(f.in, field.qualis = field.qualis) : 
  All files in zip.files input should be with .zip extension. Check your inputs..

Tive esses erros. Mas se faço isso:

my.l <- gld_read_zip("Arquivo Comprimido.zip")
l.out <- gld_get_lattes_data_from_zip("Arquivo Comprimido.zip", field.qualis = field.qualis)

Consigo ler normalmente. O ponto é que ele só lê o 1o curriculo, e todas as análises ficam sendo e uma só pessoa. O que estou fazendo errado?

@msperlin
Copy link
Owner

@msperlin msperlin commented Oct 11, 2018

Oi Diogo,

O formato esperado é um curriculo por arquivo e não um com todos.

Veja exemplo aqui:

https://msperlin.github.io/2018-10-11-Update-GetLattesData/

@Smolski
Copy link

@Smolski Smolski commented Nov 30, 2018

Olá!
O atalho https://msperlin.github.io/2018-10-11-Update-GetLattesData/ não está ativo, teria outro?

Cordialmente

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.