springerQuarantineBooksR icon indicating copy to clipboard operation
springerQuarantineBooksR copied to clipboard

All files seems to be broken or empty

Open michalastocki opened this issue 4 years ago • 9 comments

Does downloading work for you right now?

For me all the files are very small, the same size, and don't open at all.

image

michalastocki avatar May 15 '20 22:05 michalastocki

Yes, I'm checking this issue now... It is happening on my side also. Thanks for pointing tat out!

renanxcortes avatar May 16 '20 01:05 renanxcortes

I have that this issue is also happening in the Python version of the library: https://github.com/alexgand/springer_free_books/issues/113 It seems like Springer added an additional security step with some kind of recaptcha.

renanxcortes avatar May 16 '20 02:05 renanxcortes

hey, just add the cookie recaptcha= to your request to make it work again

mutantacule avatar May 20 '20 21:05 mutantacule

hey, just add the cookie recaptcha= to your request to make it work again

That's really cool! I still need to investigate how to adapt your Python solution in R. Do you have any clue that helps me in that sense? Thanks!

renanxcortes avatar May 20 '20 21:05 renanxcortes

hey, just add the cookie recaptcha= to your request to make it work again

That's really cool! I still need to investigate how to adapt your Python solution in R. Do you have any clue that helps me in that sense? Thanks!

(Perhaps an additional argument in https://github.com/renanxcortes/springerQuarantineBooksR/blob/e0b76b697225674171046f8e4c3a209dfeffb8b4/R/download_springer_book.R#L50)

renanxcortes avatar May 20 '20 21:05 renanxcortes

hey, just add the cookie recaptcha= to your request to make it work again

That's really cool! I still need to investigate how to adapt your Python solution in R. Do you have any clue that helps me in that sense? Thanks!

(Perhaps an additional argument in

https://github.com/renanxcortes/springerQuarantineBooksR/blob/e0b76b697225674171046f8e4c3a209dfeffb8b4/R/download_springer_book.R#L50

)

Hey! Thanks for pointing to this file. I'm not exactly familiar with R, but from what I found, this should do it:

GET(download_url, set_cookies(`recaptcha` = "")) 

Let me know if it worked!

mutantacule avatar May 20 '20 21:05 mutantacule

hey, just add the cookie recaptcha= to your request to make it work again

That's really cool! I still need to investigate how to adapt your Python solution in R. Do you have any clue that helps me in that sense? Thanks!

(Perhaps an additional argument in https://github.com/renanxcortes/springerQuarantineBooksR/blob/e0b76b697225674171046f8e4c3a209dfeffb8b4/R/download_springer_book.R#L50

)

Hey! Thanks for pointing to this file. I'm not exactly familiar with R, but from what I found, this should do it:

GET(download_url, set_cookies(`recaptcha` = "")) 

Let me know if it worked!

Awesome! I made many tests locally here and it worked, thank you so much, @mutantacule ! I'll fix that through a PR!

renanxcortes avatar May 20 '20 23:05 renanxcortes

This issue is now reopened. It seems like springer tweaked the reCaptcha and the workaround is not working anymore :(

renanxcortes avatar May 23 '20 21:05 renanxcortes

@renanxcortes try randomizing IP.

Raymo111 avatar Jun 08 '20 23:06 Raymo111