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
OSError when downloading a very long url #3953
Comments
Funny, the code actually uses a hash as file name. However, it picks the whole |
If you don’t want to wait for a fix, you can override the |
@Gallaecio Working on that |
Yes, I override |
This seems related to #1287 |
Hello. I am new here. Can anyone please tell me where can I get the source code? |
oh,look at this~ https://github.com/scrapy/scrapy/tree/master/scrapy |
Hey man, can I fix this? This would make my 1st PR |
@ritik-malik There’s no need to ask for permission to fix an issue, you can usually just start a pull request including a reference to the ticket and that’s it. However, in this case there is already a pull request open, #3954, which seems promising. Maybe you could find a different issue? |
When you run into some horrible image url, like this:
Then...
So,I think that when downloading a file, you should use a random name instead of intercepting it from the url.For some particularly weird urls, this will cause an OSErro when writing to the file
The text was updated successfully, but these errors were encountered: