-
Notifications
You must be signed in to change notification settings - Fork 22
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
gutenberg_download()
not working: "Could not download a book at http://aleph.gutenberg.org/x/x/x/x.zip"
#28
Comments
Have you tried a different mirror? library(gutenbergr)
my_mirror <- "http://mirrors.xmission.com/gutenberg/"
gutenberg_download(768, mirror = my_mirror)
#> # A tibble: 12,314 x 2
#> gutenberg_id text
#> <int> <chr>
#> 1 768 "Wuthering Heights"
#> 2 768 ""
#> 3 768 "by Emily Brontë"
#> 4 768 ""
#> 5 768 ""
#> 6 768 ""
#> 7 768 ""
#> 8 768 "CHAPTER I"
#> 9 768 ""
#> 10 768 ""
#> # … with 12,304 more rows Created on 2021-05-23 by the reprex package (v2.0.0) |
That works perfectly, thanks! I'll leave it up to you whether to keep the issue open or not – it works as intended when I use the different mirror (so my specific problem is solved), but without that alteration the behaviour doesn't match what would be expected and throws errors when running the examples. |
It's super frustrating that the mirror determined via http://www.gutenberg.org/robot/harvest seems to be just failing all the time now. |
My student and I just experienced this issue, after having code with the default mirror work fine a couple weeks ago! I wonder if a more informative error message for
I figured that was probably the issue, but wasn't sure how to change the mirror (I clicked on the link to http://www.gutenberg.org/robot/harvest?filetypes[]=txt in the |
I haven't been able to get the
gutenberg_download()
function to work at all. A couple of examples, both drawn from the examples provided in the readme:I assume that the issue is to do with the aleph.gutenberg.org mirror, since none of the addresses it generates give me anything when pasted into a web browser. FWIW I have been able to use
gutenberg_works()
fine on its own to return queried metadata, just notgutenberg_download()
.I'm running gutenbergr 0.2.0, downloaded from CRAN.
Session info:
R version 4.0.5 (2021-03-31)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.7
The text was updated successfully, but these errors were encountered: