-
Notifications
You must be signed in to change notification settings - Fork 85
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
Invalid URL #20
Comments
Same here:
|
Hi there, are both of you using the most recent version from this repo? I'll take a look at the version you're using and let you know if I can figure out why we're seeing this bug. |
I am on the latest version of the repo. |
Latest repo too. I wrote that the same day I DL'ed and installed. BTW-Kudos again, cool stuff. It's like grandma's cookies; still damn good even with a bug or two. :) |
These changes are separate from the changes adding parallelism, and should help work around server errors.
Thank you both, I've added a check for any server errors, so it shouldn't even try to download a book (and leave you with an empty file). Below are links to a version that is this repo's master branch with slight changes to address these problems, as well as a version that includes parallel downloading (from PR #18). Current master with patch: Patch with parallel downloads: If you find any bugs or run into any problems just let me know - I haven't had the chance to write tests for the updated code, so my "testing" has just been running the script a few times. |
These changes are separate from the changes adding parallelism, and should help work around server errors.
I reran the script today and I do not see this error anymore! |
The script works for the most part, but fails randomly. It will download many PDFs and ZIPs then suddenly fail with the error below. When I go to my media directory I will see a file 0 byte file size, delete it, run script with exact same parameters and it downloads just fine....until it randomly fails again with same error. If it means anything I am using Python 3.7 and I see you are working on 3.6.
File "C:\Python\Python37\lib\site-packages\requests\models.py", line 387, in prepare_url
raise MissingSchema(error)
equests.exceptions.MissingSchema: Invalid URL '': No schema supplied. Perhaps you meant http://?
The text was updated successfully, but these errors were encountered: